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.0009126/0.0009126, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.0009237/0.0009237, allocations: 168 kB / 24.91 MB, free: 8.766 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.8768/0.8768, allocations: 177.1 MB / 205.3 MB, free: 5.488 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: 3.938 kB / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.897e-06/1.011e-05, allocations: 2.312 kB / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008077/0.008087, allocations: 13.23 MB / 286.7 MB, free: 4.035 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1104/0.1185, allocations: 19.45 MB / 306.1 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001041/0.1195, allocations: 191.1 kB / 306.3 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001724/0.1212, allocations: 1.069 MB / 307.4 MB, free: 9.918 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004419/0.1257, allocations: 2.425 MB / 309.8 MB, free: 8.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002532/0.1282, allocations: 1.468 MB / 311.3 MB, free: 7.621 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004561/0.1328, allocations: 6.774 MB / 318 MB, free: 4.293 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003833/0.1331, allocations: 282.5 kB / 318.3 MB, free: 4.078 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002134/0.1353, allocations: 3.019 MB / 321.3 MB, free: 1.078 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006088/0.1359, allocations: 0.8058 MB / 322.1 MB, free: 276 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.796e-05/0.136, allocations: 76 kB / 322.2 MB, free: 200 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001643/0.1376, allocations: 1.21 MB / 323.4 MB, free: 14.98 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002019/0.1378, allocations: 333.7 kB / 323.7 MB, free: 14.66 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005779/0.1384, allocations: 0.7242 MB / 324.5 MB, free: 13.93 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002173/0.1406, allocations: 2.763 MB / 327.2 MB, free: 11.16 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1406, allocations: 0 / 327.2 MB, free: 11.16 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1406, allocations: 0 / 327.2 MB, free: 11.16 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.28e-05/0.1406, allocations: 0 / 327.2 MB, free: 11.16 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.002604/0.1432, allocations: 3.538 MB / 330.8 MB, free: 7.57 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.1432, allocations: 8.031 kB / 330.8 MB, free: 7.562 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000222/0.1435, allocations: 271.7 kB / 331 MB, free: 7.297 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001895/0.1454, allocations: 2.118 MB / 333.2 MB, free: 5.062 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.1454, allocations: 40.98 kB / 333.2 MB, free: 5.02 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.146e-05/0.1455, allocations: 51.95 kB / 333.3 MB, free: 4.969 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005098/0.146, allocations: 475.5 kB / 333.7 MB, free: 4.496 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.146, allocations: 1.938 kB / 333.7 MB, free: 4.496 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.084e-05/0.146, allocations: 23.94 kB / 333.7 MB, free: 4.473 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.146, allocations: 19.98 kB / 333.8 MB, free: 4.453 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000326/0.1464, allocations: 219.8 kB / 334 MB, free: 4.242 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001869/0.1482, allocations: 1.454 MB / 335.4 MB, free: 2.758 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003995/0.1486, allocations: 392.5 kB / 335.8 MB, free: 2.367 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005003/0.1491, allocations: 0.5011 MB / 336.3 MB, free: 1.863 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02283/0.172, allocations: 22.86 MB / 359.2 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003476/0.1723, allocations: 358 kB / 359.5 MB, free: 9.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 2.424e-06/0.1723, allocations: 4 kB / 359.5 MB, free: 9.766 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.003429/0.1757, allocations: 2.231 MB / 361.8 MB, free: 7.488 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.131e-05/0.1758, allocations: 68.41 kB / 361.8 MB, free: 7.406 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001294/0.1771, allocations: 2.425 MB / 364.3 MB, free: 4.965 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.021e-05/0.1771, allocations: 41.7 kB / 364.3 MB, free: 4.918 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003007/0.1774, allocations: 0.5919 MB / 364.9 MB, free: 4.32 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001661/0.1776, allocations: 349 kB / 365.2 MB, free: 3.977 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.1778, allocations: 194.3 kB / 365.4 MB, free: 3.781 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.596e-05/0.1778, allocations: 353.8 kB / 365.8 MB, free: 3.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.178, allocations: 110.3 kB / 365.9 MB, free: 3.324 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003001/0.1783, allocations: 310.6 kB / 366.2 MB, free: 2.953 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004386/0.1787, allocations: 0.5242 MB / 366.7 MB, free: 2.359 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1787, allocations: 0 / 366.7 MB, free: 2.359 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0008777/0.1796, allocations: 0.8859 MB / 367.6 MB, free: 1.438 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.1796, allocations: 8 kB / 367.6 MB, free: 1.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.206e-05/0.1797, allocations: 19.98 kB / 367.6 MB, free: 1.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003126/0.18, allocations: 216.5 kB / 367.8 MB, free: 1.168 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000363/0.1804, allocations: 186.1 kB / 368 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004055/0.1844, allocations: 11.81 MB / 379.8 MB, free: 4.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004174/0.1848, allocations: 71.88 kB / 379.9 MB, free: 4.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.294e-05/0.1849, allocations: 28 kB / 379.9 MB, free: 4.223 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.0002738/0.1852, allocations: 169.6 kB / 380.1 MB, free: 4.047 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002582/0.1854, allocations: 263.6 kB / 380.3 MB, free: 3.789 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001394/0.1868, allocations: 1.19 MB / 381.5 MB, free: 2.562 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.1868, allocations: 8 kB / 381.5 MB, free: 2.555 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1868, allocations: 4 kB / 381.5 MB, free: 2.551 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.1869, allocations: 7.969 kB / 381.5 MB, free: 2.543 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007416/0.1876, allocations: 0.8761 MB / 382.4 MB, free: 1.648 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-05/0.1876, allocations: 11.98 kB / 382.4 MB, free: 1.637 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002482/0.1879, allocations: 111.9 kB / 382.5 MB, free: 1.527 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002908/0.1882, allocations: 220.3 kB / 382.8 MB, free: 1.281 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.102e-05/0.1882, allocations: 23.98 kB / 382.8 MB, free: 1.258 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004007/0.1922, allocations: 11.81 MB / 394.6 MB, free: 4.578 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1922, allocations: 0 / 394.6 MB, free: 4.578 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.1933, allocations: 1.052 MB / 395.6 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003806/0.1937, allocations: 373.4 kB / 396 MB, free: 3.109 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001694/0.1939, allocations: 24.12 kB / 396 MB, free: 3.086 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003832/0.1942, allocations: 55.89 kB / 396.1 MB, free: 3.031 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/0.1944, allocations: 124.7 kB / 396.2 MB, free: 2.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.574e-05/0.1945, allocations: 23.98 kB / 396.2 MB, free: 2.887 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007724/0.1952, allocations: 1.306 MB / 397.5 MB, free: 1.57 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1952, allocations: 0 / 397.5 MB, free: 1.57 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008546/0.1961, allocations: 0.6596 MB / 398.2 MB, free: 0.9102 MB / 346.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.000888/0.197, allocations: 0.9713 MB / 399.2 MB, free: 15.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.1981, allocations: 1.728 MB / 400.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.089e-05/0.1981, allocations: 40.19 kB / 400.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008228/0.1989, allocations: 1.509 MB / 402.4 MB, free: 12.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001168/0.2001, allocations: 0.6369 MB / 403.1 MB, free: 11.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003259/0.2033, allocations: 4.12 MB / 407.2 MB, free: 7.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.2036, allocations: 412.9 kB / 407.6 MB, free: 7.098 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000596/0.2042, allocations: 391.4 kB / 408 MB, free: 6.711 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007845/0.205, allocations: 0.6045 MB / 408.6 MB, free: 6.098 MB / 362.7 MB Notification: Performance of SimCode: time 6.11e-07/0.205, allocations: 0 / 408.6 MB, free: 6.098 MB / 362.7 MB Notification: Performance of Templates: time 0.1332/0.3382, allocations: 44.26 MB / 452.8 MB, free: 103.6 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.4562107590027153]