Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 77.88 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009799/0.0009799, allocations: 169.3 kB / 24.82 MB, free: 8.867 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.914/0.914, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.045e-05/1.166e-05, allocations: 9.203 kB / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01049/0.01051, allocations: 13.21 MB / 286.6 MB, free: 4.039 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1319/0.1424, allocations: 19.07 MB / 305.7 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001085/0.1435, allocations: 191.9 kB / 305.9 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001543/0.145, allocations: 1.039 MB / 306.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003487/0.1485, allocations: 2.399 MB / 309.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002356/0.1509, allocations: 1.456 MB / 310.8 MB, free: 8.113 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004726/0.1556, allocations: 6.829 MB / 317.6 MB, free: 4.816 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003622/0.1559, allocations: 247.8 kB / 317.8 MB, free: 4.648 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002084/0.158, allocations: 3.028 MB / 320.9 MB, free: 1.645 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005481/0.1586, allocations: 0.8136 MB / 321.7 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001071/0.1587, allocations: 72 kB / 321.7 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001844/0.1605, allocations: 1.21 MB / 322.9 MB, free: 15.55 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001725/0.1607, allocations: 329.7 kB / 323.3 MB, free: 15.22 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005353/0.1612, allocations: 0.7243 MB / 324 MB, free: 14.5 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002244/0.1635, allocations: 2.763 MB / 326.8 MB, free: 11.72 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1635, allocations: 0 / 326.8 MB, free: 11.72 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1635, allocations: 0 / 326.8 MB, free: 11.72 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.481e-05/0.1635, allocations: 0 / 326.8 MB, free: 11.72 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.003066/0.1666, allocations: 3.84 MB / 330.6 MB, free: 7.824 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.1666, allocations: 8.031 kB / 330.6 MB, free: 7.816 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003002/0.1669, allocations: 429.5 kB / 331 MB, free: 7.395 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002018/0.1689, allocations: 2.639 MB / 333.7 MB, free: 4.656 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.612e-05/0.169, allocations: 37 kB / 333.7 MB, free: 4.617 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.697e-05/0.169, allocations: 51.94 kB / 333.7 MB, free: 4.566 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005503/0.1696, allocations: 0.4928 MB / 334.2 MB, free: 4.066 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.1696, allocations: 0 / 334.2 MB, free: 4.066 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.297e-05/0.1696, allocations: 23.94 kB / 334.3 MB, free: 4.043 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.1697, allocations: 19.98 kB / 334.3 MB, free: 4.023 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004127/0.1701, allocations: 423.6 kB / 334.7 MB, free: 3.613 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002482/0.1726, allocations: 2.227 MB / 336.9 MB, free: 1.34 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004352/0.173, allocations: 398.7 kB / 337.3 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004858/0.1735, allocations: 0.5552 MB / 337.9 MB, free: 392 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01437/0.1878, allocations: 15.22 MB / 353.1 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003838/0.1882, allocations: 395.8 kB / 353.5 MB, free: 420 kB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 1.904e-06/0.1882, allocations: 0 / 353.5 MB, free: 420 kB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.003189/0.1914, allocations: 2.477 MB / 356 MB, free: 13.86 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.307e-05/0.1915, allocations: 64.41 kB / 356 MB, free: 13.78 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002024/0.1935, allocations: 2.874 MB / 358.9 MB, free: 10.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.302e-05/0.1935, allocations: 41.7 kB / 358.9 MB, free: 10.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000965/0.1945, allocations: 1.493 MB / 360.4 MB, free: 9.344 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001803/0.1947, allocations: 353 kB / 360.8 MB, free: 8.996 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002182/0.1949, allocations: 244 kB / 361 MB, free: 8.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.195, allocations: 0.5237 MB / 361.5 MB, free: 8.219 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.1952, allocations: 162.1 kB / 361.7 MB, free: 8.062 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002954/0.1955, allocations: 414 kB / 362.1 MB, free: 7.566 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005411/0.1961, allocations: 0.637 MB / 362.7 MB, free: 6.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.1961, allocations: 4 kB / 362.7 MB, free: 6.836 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00158/0.1976, allocations: 1.253 MB / 364 MB, free: 5.535 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.1977, allocations: 8 kB / 364 MB, free: 5.527 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.941e-05/0.1977, allocations: 124.5 kB / 364.1 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003677/0.1981, allocations: 252.6 kB / 364.4 MB, free: 5.117 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003785/0.1985, allocations: 179.7 kB / 364.5 MB, free: 4.941 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006302/0.2048, allocations: 17.36 MB / 381.9 MB, free: 2.449 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004626/0.2053, allocations: 67.97 kB / 382 MB, free: 2.383 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-05/0.2053, allocations: 52 kB / 382 MB, free: 2.332 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003079/0.2056, allocations: 216.8 kB / 382.2 MB, free: 2.109 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000272/0.2059, allocations: 417.5 kB / 382.6 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001672/0.2076, allocations: 1.498 MB / 384.1 MB, free: 152 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.2076, allocations: 16 kB / 384.1 MB, free: 136 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2076, allocations: 7.938 kB / 384.2 MB, free: 128 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.2076, allocations: 7.969 kB / 384.2 MB, free: 120 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009358/0.2085, allocations: 1.075 MB / 385.2 MB, free: 15.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.176e-05/0.2086, allocations: 116 kB / 385.4 MB, free: 14.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005144/0.2091, allocations: 111.8 kB / 385.5 MB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003246/0.2095, allocations: 244.6 kB / 385.7 MB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.099e-05/0.2095, allocations: 43.98 kB / 385.7 MB, free: 14.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005904/0.2154, allocations: 17.35 MB / 403.1 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.2154, allocations: 0 / 403.1 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001427/0.2168, allocations: 1.478 MB / 404.6 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004341/0.2173, allocations: 459.4 kB / 405 MB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.2174, allocations: 23.98 kB / 405 MB, free: 9.949 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004055/0.2178, allocations: 59.83 kB / 405.1 MB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001922/0.218, allocations: 144.7 kB / 405.2 MB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.337e-05/0.2181, allocations: 47.98 kB / 405.3 MB, free: 9.703 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009684/0.2191, allocations: 1.503 MB / 406.8 MB, free: 8.191 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2191, allocations: 0 / 406.8 MB, free: 8.191 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001211/0.2203, allocations: 0.6674 MB / 407.5 MB, free: 7.523 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009532/0.2212, allocations: 0.9641 MB / 408.4 MB, free: 6.555 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001384/0.2226, allocations: 2.465 MB / 410.9 MB, free: 3.887 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2226, allocations: 0 / 410.9 MB, free: 3.887 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009961/0.2236, allocations: 2.2 MB / 413.1 MB, free: 1.484 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.2249, allocations: 0.6578 MB / 413.7 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003867/0.2288, allocations: 4.303 MB / 418.1 MB, free: 12.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002715/0.2291, allocations: 404.9 kB / 418.4 MB, free: 12.04 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006351/0.2297, allocations: 395.4 kB / 418.8 MB, free: 11.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008492/0.2305, allocations: 0.7283 MB / 419.6 MB, free: 10.91 MB / 378.7 MB Notification: Performance of SimCode: time 5.92e-07/0.2305, allocations: 0 / 419.6 MB, free: 10.91 MB / 378.7 MB Notification: Performance of Templates: time 0.1384/0.369, allocations: 44.8 MB / 464.4 MB, free: 89.21 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.784061653073877]