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.0008866/0.0008866, allocations: 80.92 kB / 22.29 MB, free: 2.207 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.0009076/0.0009076, allocations: 165.8 kB / 25.7 MB, free: 8.438 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 0.7916/0.7916, allocations: 158.6 MB / 187.6 MB, free: 2.785 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.092e-06/1.092e-06, allocations: 0 / 251.5 MB, free: 7.289 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.318e-05/1.427e-05, allocations: 6.25 kB / 251.5 MB, free: 7.281 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008096/0.008111, allocations: 12.43 MB / 263.9 MB, free: 10.8 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02487/0.03299, allocations: 18.45 MB / 282.4 MB, free: 8.273 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002066/0.03505, allocations: 189.8 kB / 282.6 MB, free: 8.086 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002668/0.03772, allocations: 1.045 MB / 283.6 MB, free: 7.031 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007383/0.0451, allocations: 2.371 MB / 286 MB, free: 4.645 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004112/0.04921, allocations: 1.399 MB / 287.4 MB, free: 3.234 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007033/0.05625, allocations: 6.5 MB / 293.9 MB, free: 12.71 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005205/0.05677, allocations: 277.7 kB / 294.2 MB, free: 12.4 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002588/0.05936, allocations: 2.775 MB / 296.9 MB, free: 9.617 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009205/0.06028, allocations: 0.7631 MB / 297.7 MB, free: 8.852 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001459/0.06042, allocations: 68 kB / 297.8 MB, free: 8.785 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001925/0.06235, allocations: 1.081 MB / 298.8 MB, free: 7.703 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002088/0.06256, allocations: 317.7 kB / 299.2 MB, free: 7.391 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006989/0.06326, allocations: 0.7126 MB / 299.9 MB, free: 6.676 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002594/0.06585, allocations: 2.735 MB / 302.6 MB, free: 3.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.06585, allocations: 4 kB / 302.6 MB, free: 3.926 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.06585, allocations: 0 / 302.6 MB, free: 3.926 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.07e-05/0.06594, allocations: 0 / 302.6 MB, free: 3.926 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.003135/0.06907, allocations: 3.502 MB / 306.1 MB, free: 380 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.06911, allocations: 11.98 kB / 306.1 MB, free: 368 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002988/0.0694, allocations: 279.7 kB / 306.4 MB, free: 88 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002025/0.07143, allocations: 2.114 MB / 308.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.249e-05/0.07145, allocations: 33 kB / 308.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.477e-05/0.07153, allocations: 47.95 kB / 308.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004986/0.07203, allocations: 455.4 kB / 309 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.07204, allocations: 0 / 309 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.575e-05/0.07207, allocations: 16 kB / 309 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.652e-05/0.07209, allocations: 27.98 kB / 309.1 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003095/0.0724, allocations: 207.8 kB / 309.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00199/0.07439, allocations: 1.433 MB / 310.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003072/0.0747, allocations: 321.1 kB / 311 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002806/0.07498, allocations: 331.2 kB / 311.3 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02333/0.09831, allocations: 23.01 MB / 334.4 MB, free: 3.102 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002618/0.09857, allocations: 209.8 kB / 334.6 MB, free: 2.883 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.925e-06/0.09857, allocations: 0 / 334.6 MB, free: 2.883 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009825/0.09956, allocations: 0.6558 MB / 335.2 MB, free: 2.219 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.966e-05/0.09959, allocations: 63.34 kB / 335.3 MB, free: 2.145 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001503/0.1011, allocations: 2.536 MB / 337.8 MB, free: 15.58 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.197e-05/0.1011, allocations: 33.64 kB / 337.8 MB, free: 15.54 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003457/0.1015, allocations: 0.7192 MB / 338.6 MB, free: 14.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.481e-05/0.1016, allocations: 178.5 kB / 338.7 MB, free: 14.64 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001583/0.1017, allocations: 186.3 kB / 338.9 MB, free: 14.45 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.657e-05/0.1018, allocations: 345.9 kB / 339.3 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.836e-05/0.1019, allocations: 69.97 kB / 339.3 MB, free: 14.04 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002471/0.1022, allocations: 443 kB / 339.8 MB, free: 13.45 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004301/0.1026, allocations: 0.6076 MB / 340.4 MB, free: 12.66 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.1026, allocations: 4 kB / 340.4 MB, free: 12.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0006776/0.1033, allocations: 0.7123 MB / 341.1 MB, free: 11.94 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.1033, allocations: 8 kB / 341.1 MB, free: 11.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.493e-05/0.1033, allocations: 27.98 kB / 341.1 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000255/0.1036, allocations: 136.8 kB / 341.3 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002784/0.1039, allocations: 171.7 kB / 341.4 MB, free: 11.6 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004123/0.1043, allocations: 0.6498 MB / 342.1 MB, free: 10.92 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004002/0.1047, allocations: 103.3 kB / 342.2 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.465e-05/0.1047, allocations: 39.98 kB / 342.2 MB, free: 10.78 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.0002558/0.105, allocations: 181.4 kB / 342.4 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001696/0.1052, allocations: 235.7 kB / 342.6 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/0.1062, allocations: 0.8167 MB / 343.4 MB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1062, allocations: 4 kB / 343.4 MB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.1062, allocations: 0 / 343.4 MB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1062, allocations: 0 / 343.4 MB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001371/0.1076, allocations: 1.591 MB / 345 MB, free: 7.879 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-05/0.1076, allocations: 19.98 kB / 345 MB, free: 7.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.1077, allocations: 52.09 kB / 345.1 MB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002056/0.1079, allocations: 132.7 kB / 345.2 MB, free: 7.676 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.376e-05/0.1079, allocations: 12 kB / 345.2 MB, free: 7.664 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003577/0.1083, allocations: 0.6264 MB / 345.9 MB, free: 7.012 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.1083, allocations: 4 kB / 345.9 MB, free: 7.008 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005015/0.1088, allocations: 0.5969 MB / 346.5 MB, free: 6.379 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003377/0.1091, allocations: 381.2 kB / 346.8 MB, free: 6.008 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/0.1093, allocations: 20.02 kB / 346.9 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00029/0.1096, allocations: 19.98 kB / 346.9 MB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.196e-05/0.1097, allocations: 43.86 kB / 346.9 MB, free: 5.926 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.143e-05/0.1097, allocations: 16 kB / 346.9 MB, free: 5.91 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008222/0.1105, allocations: 1.341 MB / 348.3 MB, free: 4.559 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1105, allocations: 0 / 348.3 MB, free: 4.559 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007406/0.1113, allocations: 0.5775 MB / 348.9 MB, free: 3.98 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.0008373/0.1121, allocations: 0.9382 MB / 349.8 MB, free: 3.027 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005276/0.1126, allocations: 490.5 kB / 350.3 MB, free: 2.523 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-05/0.1127, allocations: 40.5 kB / 350.3 MB, free: 2.484 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002502/0.1129, allocations: 268 kB / 350.6 MB, free: 2.199 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009002/0.1138, allocations: 0.5134 MB / 351.1 MB, free: 1.68 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09048/0.2043, allocations: 3.763 MB / 354.8 MB, free: 76.88 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001937/0.2045, allocations: 367.6 kB / 355.2 MB, free: 76.77 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000598/0.2051, allocations: 387.9 kB / 355.6 MB, free: 76.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000527/0.2056, allocations: 0.563 MB / 356.1 MB, free: 76.7 MB / 330.7 MB Notification: Performance of SimCode: time 1.132e-06/0.2056, allocations: 0 / 356.1 MB, free: 76.7 MB / 330.7 MB Notification: Performance of Templates: time 0.03744/0.243, allocations: 37.42 MB / 393.6 MB, free: 49.64 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.365270284935832]