Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.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.001082/0.001082, allocations: 84.98 kB / 23 MB, free: 1.5 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.00199/0.00199, allocations: 175.5 kB / 26.39 MB, free: 7.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.011/1.011, allocations: 158.6 MB / 188.3 MB, free: 2.805 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 3.938 kB / 252.2 MB, free: 7.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.088e-05/3.226e-05, allocations: 6.25 kB / 252.2 MB, free: 7.262 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01155/0.01158, allocations: 12.41 MB / 264.7 MB, free: 10.79 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01596/0.02754, allocations: 18.05 MB / 282.7 MB, free: 8.664 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002066/0.02961, allocations: 193.8 kB / 282.9 MB, free: 8.473 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002083/0.03169, allocations: 1.013 MB / 283.9 MB, free: 7.453 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00533/0.03702, allocations: 2.354 MB / 286.3 MB, free: 5.082 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003249/0.04027, allocations: 1.382 MB / 287.7 MB, free: 3.688 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006981/0.04725, allocations: 6.55 MB / 294.2 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005471/0.0478, allocations: 248.9 kB / 294.4 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003028/0.05083, allocations: 2.784 MB / 297.2 MB, free: 10.05 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009164/0.05174, allocations: 0.7592 MB / 298 MB, free: 9.289 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.05186, allocations: 68 kB / 298.1 MB, free: 9.223 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00247/0.05433, allocations: 1.077 MB / 299.1 MB, free: 8.145 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002057/0.05454, allocations: 321.7 kB / 299.4 MB, free: 7.828 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007221/0.05526, allocations: 0.7165 MB / 300.2 MB, free: 7.109 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003188/0.05845, allocations: 2.732 MB / 302.9 MB, free: 4.367 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.186e-06/0.05846, allocations: 4 kB / 302.9 MB, free: 4.363 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.05846, allocations: 0 / 302.9 MB, free: 4.363 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.056e-05/0.05852, allocations: 0 / 302.9 MB, free: 4.363 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.003393/0.06191, allocations: 3.803 MB / 306.7 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.06195, allocations: 15.98 kB / 306.7 MB, free: 492 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003137/0.06226, allocations: 429.6 kB / 307.1 MB, free: 60 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00228/0.06454, allocations: 2.635 MB / 309.8 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/0.06457, allocations: 37 kB / 309.8 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.06468, allocations: 51.94 kB / 309.9 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000575/0.06525, allocations: 472.7 kB / 310.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.06526, allocations: 0 / 310.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.318e-05/0.06531, allocations: 24 kB / 310.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/0.06533, allocations: 23.92 kB / 310.4 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004307/0.06576, allocations: 415.7 kB / 310.8 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002876/0.06863, allocations: 2.175 MB / 312.9 MB, free: 10.1 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003796/0.06901, allocations: 329.6 kB / 313.3 MB, free: 9.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003348/0.06935, allocations: 377.9 kB / 313.6 MB, free: 9.398 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02118/0.09053, allocations: 15.23 MB / 328.9 MB, free: 9.789 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004481/0.09098, allocations: 259.5 kB / 329.1 MB, free: 9.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.815e-06/0.09098, allocations: 3.938 kB / 329.1 MB, free: 9.516 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.002018/0.093, allocations: 1.014 MB / 330.1 MB, free: 8.492 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.09304, allocations: 63.39 kB / 330.2 MB, free: 8.418 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003339/0.09638, allocations: 2.979 MB / 333.2 MB, free: 5.398 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.836e-05/0.09644, allocations: 33.7 kB / 333.2 MB, free: 5.359 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001322/0.09776, allocations: 1.609 MB / 334.8 MB, free: 3.742 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.09791, allocations: 178.5 kB / 335 MB, free: 3.566 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002547/0.09817, allocations: 235.9 kB / 335.2 MB, free: 3.328 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.09832, allocations: 0.5159 MB / 335.7 MB, free: 2.805 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.0985, allocations: 101.9 kB / 335.8 MB, free: 2.707 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004391/0.09894, allocations: 0.6158 MB / 336.5 MB, free: 1.859 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007566/0.0997, allocations: 0.8065 MB / 337.3 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.09971, allocations: 4 kB / 337.3 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001574/0.1013, allocations: 1.042 MB / 338.3 MB, free: 15.76 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.1013, allocations: 12.94 kB / 338.3 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001141/0.1014, allocations: 80 kB / 338.4 MB, free: 15.67 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004909/0.1019, allocations: 263.5 kB / 338.7 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004657/0.1024, allocations: 159.7 kB / 338.8 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001059/0.1034, allocations: 1.081 MB / 339.9 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008312/0.1043, allocations: 103.3 kB / 340 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.094e-05/0.1044, allocations: 56 kB / 340 MB, free: 13.99 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0003723/0.1047, allocations: 216.2 kB / 340.3 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003269/0.1051, allocations: 397.6 kB / 340.6 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001781/0.1068, allocations: 1.052 MB / 341.7 MB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.814e-06/0.1069, allocations: 4 kB / 341.7 MB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1069, allocations: 4 kB / 341.7 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.1069, allocations: 3.984 kB / 341.7 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002917/0.1098, allocations: 2.193 MB / 343.9 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.733e-05/0.1099, allocations: 75.98 kB / 344 MB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001899/0.1101, allocations: 51.91 kB / 344 MB, free: 9.895 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003781/0.1104, allocations: 243.6 kB / 344.3 MB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.843e-05/0.1105, allocations: 36 kB / 344.3 MB, free: 9.617 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007547/0.1112, allocations: 1.054 MB / 345.4 MB, free: 8.531 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.1112, allocations: 0 / 345.4 MB, free: 8.531 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.1126, allocations: 1.007 MB / 346.4 MB, free: 7.477 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006473/0.1133, allocations: 415.3 kB / 346.8 MB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002614/0.1135, allocations: 15.98 kB / 346.8 MB, free: 7.051 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005647/0.1141, allocations: 19.98 kB / 346.8 MB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.1143, allocations: 67.86 kB / 346.9 MB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-05/0.1143, allocations: 36.03 kB / 346.9 MB, free: 6.93 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001549/0.1159, allocations: 1.546 MB / 348.4 MB, free: 5.379 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1159, allocations: 0 / 348.4 MB, free: 5.379 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001205/0.1171, allocations: 0.5813 MB / 349 MB, free: 4.797 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001245/0.1183, allocations: 0.9258 MB / 350 MB, free: 3.855 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.1194, allocations: 0.6159 MB / 350.6 MB, free: 3.219 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1194, allocations: 0 / 350.6 MB, free: 3.219 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005623/0.12, allocations: 385.5 kB / 350.9 MB, free: 2.812 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001654/0.1216, allocations: 0.5331 MB / 351.5 MB, free: 2.273 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1082/0.2298, allocations: 3.78 MB / 355.3 MB, free: 76.69 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002788/0.2301, allocations: 369.9 kB / 355.6 MB, free: 76.59 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008007/0.2309, allocations: 386.6 kB / 356 MB, free: 76.56 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000578/0.2315, allocations: 0.6271 MB / 356.6 MB, free: 76.51 MB / 330.7 MB Notification: Performance of SimCode: time 1.884e-06/0.2315, allocations: 0 / 356.6 MB, free: 76.51 MB / 330.7 MB Notification: Performance of Templates: time 0.0383/0.2698, allocations: 37.86 MB / 394.5 MB, free: 49.56 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.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.702345199882984]