Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009934/0.0009934, allocations: 80.06 kB / 21.18 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009277/0.0009277, allocations: 141.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9086/0.9086, allocations: 173.3 MB / 201.1 MB, free: 9.305 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.41e-05/2.568e-05, allocations: 6.312 kB / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.009409/0.009435, allocations: 13.54 MB / 281.5 MB, free: 8.824 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1223/0.1317, allocations: 19.39 MB / 300.9 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.1328, allocations: 192.7 kB / 301.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001765/0.1346, allocations: 1.039 MB / 302.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004023/0.1386, allocations: 2.41 MB / 304.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002352/0.141, allocations: 1.443 MB / 306 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00514/0.1461, allocations: 6.76 MB / 312.7 MB, free: 9.359 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003631/0.1465, allocations: 242.9 kB / 313 MB, free: 9.199 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002064/0.1485, allocations: 2.95 MB / 315.9 MB, free: 7.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006238/0.1492, allocations: 0.8206 MB / 316.8 MB, free: 7.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.1493, allocations: 72 kB / 316.8 MB, free: 7.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001646/0.1509, allocations: 1.199 MB / 318 MB, free: 6.332 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001469/0.1511, allocations: 332.7 kB / 318.3 MB, free: 6.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000565/0.1516, allocations: 0.7266 MB / 319.1 MB, free: 5.305 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001787/0.1534, allocations: 2.751 MB / 321.8 MB, free: 2.82 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1534, allocations: 0 / 321.8 MB, free: 2.82 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1534, allocations: 0 / 321.8 MB, free: 2.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.021e-05/0.1534, allocations: 4 kB / 321.8 MB, free: 2.816 MB / 266.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.002481/0.1559, allocations: 3.803 MB / 325.6 MB, free: 14.95 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.156, allocations: 12.92 kB / 325.6 MB, free: 14.94 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000329/0.1563, allocations: 433.5 kB / 326.1 MB, free: 14.52 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00211/0.1584, allocations: 2.637 MB / 328.7 MB, free: 11.86 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.1584, allocations: 33 kB / 328.7 MB, free: 11.83 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.993e-05/0.1585, allocations: 55.94 kB / 328.8 MB, free: 11.77 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006999/0.1592, allocations: 0.5553 MB / 329.3 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.1592, allocations: 0 / 329.3 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.675e-05/0.1593, allocations: 16 kB / 329.4 MB, free: 11.19 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.82e-05/0.1593, allocations: 27.92 kB / 329.4 MB, free: 11.16 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005658/0.1598, allocations: 486.4 kB / 329.9 MB, free: 10.69 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002798/0.1626, allocations: 2.711 MB / 332.6 MB, free: 7.961 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005792/0.1632, allocations: 441.5 kB / 333 MB, free: 7.527 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005999/0.1638, allocations: 0.6349 MB / 333.6 MB, free: 6.891 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01433/0.1782, allocations: 15.13 MB / 348.8 MB, free: 7.445 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004753/0.1786, allocations: 431.8 kB / 349.2 MB, free: 7.008 MB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 2.195e-06/0.1786, allocations: 0 / 349.2 MB, free: 7.008 MB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.003928/0.1826, allocations: 3.155 MB / 352.3 MB, free: 3.777 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.779e-05/0.1826, allocations: 64.39 kB / 352.4 MB, free: 3.699 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002132/0.1847, allocations: 2.892 MB / 355.3 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.03e-05/0.1848, allocations: 45.7 kB / 355.3 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009145/0.1857, allocations: 1.483 MB / 356.8 MB, free: 15.3 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001885/0.1859, allocations: 345.4 kB / 357.2 MB, free: 14.96 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002186/0.1861, allocations: 240.1 kB / 357.4 MB, free: 14.72 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.1862, allocations: 0.5199 MB / 357.9 MB, free: 14.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003053/0.1865, allocations: 206.2 kB / 358.1 MB, free: 14 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003968/0.1869, allocations: 458.1 kB / 358.6 MB, free: 13.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007023/0.1876, allocations: 0.6957 MB / 359.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.1876, allocations: 0 / 359.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.001399/0.189, allocations: 1.367 MB / 360.6 MB, free: 11.26 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.1891, allocations: 8.562 kB / 360.6 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.211e-05/0.1891, allocations: 120 kB / 360.8 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004202/0.1896, allocations: 260.8 kB / 361 MB, free: 10.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003882/0.19, allocations: 179.7 kB / 361.2 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006153/0.1961, allocations: 17.59 MB / 378.8 MB, free: 7.867 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004603/0.1966, allocations: 59.95 kB / 378.8 MB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.365e-05/0.1966, allocations: 59.98 kB / 378.9 MB, free: 7.75 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.0003123/0.197, allocations: 216.4 kB / 379.1 MB, free: 7.527 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002603/0.1972, allocations: 409.8 kB / 379.5 MB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001883/0.1991, allocations: 1.582 MB / 381.1 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.1991, allocations: 11.98 kB / 381.1 MB, free: 5.484 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1991, allocations: 4 kB / 381.1 MB, free: 5.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.1991, allocations: 7.922 kB / 381.1 MB, free: 5.473 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.2003, allocations: 1.514 MB / 382.6 MB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.117e-05/0.2004, allocations: 112 kB / 382.7 MB, free: 3.836 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000286/0.2007, allocations: 111.9 kB / 382.8 MB, free: 3.727 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003737/0.2011, allocations: 260.6 kB / 383.1 MB, free: 3.43 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.127e-05/0.2011, allocations: 51.92 kB / 383.1 MB, free: 3.379 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005806/0.207, allocations: 17.58 MB / 400.7 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.207, allocations: 0 / 400.7 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001691/0.2086, allocations: 1.594 MB / 402.3 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004248/0.2091, allocations: 459.3 kB / 402.8 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001764/0.2092, allocations: 16 kB / 402.8 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004067/0.2097, allocations: 59.89 kB / 402.8 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002393/0.2099, allocations: 148.7 kB / 403 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.815e-05/0.21, allocations: 43.98 kB / 403 MB, free: 14.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001287/0.2112, allocations: 1.61 MB / 404.6 MB, free: 12.58 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2112, allocations: 0 / 404.6 MB, free: 12.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009548/0.2122, allocations: 0.6596 MB / 405.3 MB, free: 11.92 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.0008493/0.213, allocations: 0.883 MB / 406.2 MB, free: 11.13 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001606/0.2146, allocations: 2.536 MB / 408.7 MB, free: 8.387 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2146, allocations: 8 kB / 408.7 MB, free: 8.379 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.2157, allocations: 2.231 MB / 411 MB, free: 5.945 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.2171, allocations: 0.66 MB / 411.6 MB, free: 5.281 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003732/0.2208, allocations: 4.309 MB / 415.9 MB, free: 0.9062 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002695/0.2211, allocations: 408.9 kB / 416.3 MB, free: 496 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006083/0.2217, allocations: 391.4 kB / 416.7 MB, free: 100 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002124/0.2219, allocations: 172.5 kB / 416.9 MB, free: 15.93 MB / 378.7 MB Notification: Performance of SimCode: time 7.91e-07/0.2219, allocations: 0 / 416.9 MB, free: 15.93 MB / 378.7 MB Notification: Performance of Templates: time 0.1559/0.3778, allocations: 45.96 MB / 462.8 MB, free: 100.1 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.9332913579419255]