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.002715/0.002715, allocations: 99.53 kB / 21.73 MB, free: 2.688 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.003403/0.003403, allocations: 159.7 kB / 25.03 MB, free: 8.926 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.357/1.357, allocations: 158.6 MB / 186.8 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 178] 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.312e-06/1.312e-06, allocations: 0 / 250.3 MB, free: 7.848 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.585e-05/2.716e-05, allocations: 2.312 kB / 250.4 MB, free: 7.844 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01674/0.01677, allocations: 12.69 MB / 263 MB, free: 11.1 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02831/0.04508, allocations: 18.38 MB / 281.4 MB, free: 8.645 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002641/0.04772, allocations: 197.8 kB / 281.6 MB, free: 8.449 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003278/0.05099, allocations: 1.009 MB / 282.6 MB, free: 7.434 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007907/0.0589, allocations: 2.346 MB / 285 MB, free: 5.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005032/0.06393, allocations: 1.394 MB / 286.4 MB, free: 3.664 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01206/0.076, allocations: 6.414 MB / 292.8 MB, free: 13.23 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007268/0.07672, allocations: 245 kB / 293 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002659/0.07938, allocations: 1.371 MB / 294.4 MB, free: 11.58 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001296/0.08068, allocations: 0.7358 MB / 295.1 MB, free: 10.84 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002306/0.08091, allocations: 72 kB / 295.2 MB, free: 10.77 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0035/0.08441, allocations: 1.077 MB / 296.3 MB, free: 9.695 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004514/0.08486, allocations: 317.7 kB / 296.6 MB, free: 9.383 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00146/0.08632, allocations: 0.7048 MB / 297.3 MB, free: 8.676 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006321/0.09264, allocations: 3.67 MB / 301 MB, free: 4.992 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.09265, allocations: 0 / 301 MB, free: 4.992 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.09265, allocations: 0 / 301 MB, free: 4.992 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.896e-05/0.09272, allocations: 0 / 301 MB, free: 4.992 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.006879/0.0996, allocations: 3.897 MB / 304.9 MB, free: 1.031 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.09964, allocations: 15.98 kB / 304.9 MB, free: 1.016 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000655/0.1003, allocations: 429.5 kB / 305.3 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004996/0.1053, allocations: 2.713 MB / 308 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.218e-05/0.1053, allocations: 37 kB / 308 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001531/0.1055, allocations: 51.95 kB / 308.1 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.1069, allocations: 0.6171 MB / 308.7 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.1069, allocations: 0 / 308.7 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.264e-05/0.107, allocations: 20 kB / 308.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.721e-05/0.107, allocations: 19.98 kB / 308.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001542/0.1085, allocations: 0.6797 MB / 309.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00657/0.1151, allocations: 3.16 MB / 312.6 MB, free: 9.152 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.1163, allocations: 481.7 kB / 313.1 MB, free: 8.668 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009845/0.1173, allocations: 0.4979 MB / 313.6 MB, free: 8.164 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03168/0.149, allocations: 15.4 MB / 329 MB, free: 8.375 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000757/0.1497, allocations: 355.5 kB / 329.3 MB, free: 8.012 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.274e-06/0.1497, allocations: 0 / 329.3 MB, free: 8.012 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.003396/0.1531, allocations: 1.295 MB / 330.6 MB, free: 6.707 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.232e-05/0.1532, allocations: 71.33 kB / 330.7 MB, free: 6.625 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005723/0.1589, allocations: 3.758 MB / 334.4 MB, free: 2.828 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001089/0.159, allocations: 37.7 kB / 334.5 MB, free: 2.785 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002034/0.161, allocations: 1.691 MB / 336.2 MB, free: 1.086 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002226/0.1613, allocations: 182.6 kB / 336.3 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000369/0.1616, allocations: 244 kB / 336.6 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000308/0.1619, allocations: 0.5277 MB / 337.1 MB, free: 128 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000561/0.1625, allocations: 221.9 kB / 337.3 MB, free: 15.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001025/0.1635, allocations: 0.733 MB / 338.1 MB, free: 14.95 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001637/0.1652, allocations: 1.017 MB / 339.1 MB, free: 13.7 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/0.1652, allocations: 8 kB / 339.1 MB, free: 13.69 MB / 330.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002585/0.1678, allocations: 1.289 MB / 340.4 MB, free: 12.38 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.1678, allocations: 8 kB / 340.4 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001361/0.1679, allocations: 88 kB / 340.5 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006375/0.1686, allocations: 284.3 kB / 340.7 MB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005882/0.1691, allocations: 163.7 kB / 340.9 MB, free: 11.85 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001335/0.1705, allocations: 1.167 MB / 342.1 MB, free: 10.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/0.1716, allocations: 103.3 kB / 342.2 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001147/0.1718, allocations: 64 kB / 342.2 MB, free: 10.48 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.0008534/0.1726, allocations: 472.1 kB / 342.7 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005298/0.1731, allocations: 393.6 kB / 343.1 MB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002944/0.1761, allocations: 1.243 MB / 344.3 MB, free: 8.367 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.1761, allocations: 7.984 kB / 344.3 MB, free: 8.359 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1761, allocations: 0 / 344.3 MB, free: 8.359 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.1761, allocations: 0 / 344.3 MB, free: 8.359 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004728/0.1808, allocations: 2.648 MB / 347 MB, free: 5.633 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001151/0.1809, allocations: 72 kB / 347 MB, free: 5.562 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002844/0.1812, allocations: 51.95 kB / 347.1 MB, free: 5.512 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005522/0.1818, allocations: 271.6 kB / 347.4 MB, free: 5.242 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.528e-05/0.1818, allocations: 35.98 kB / 347.4 MB, free: 5.207 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00124/0.1831, allocations: 1.132 MB / 348.5 MB, free: 4.043 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1831, allocations: 0 / 348.5 MB, free: 4.043 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00225/0.1853, allocations: 1.202 MB / 349.7 MB, free: 2.793 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000971/0.1863, allocations: 423.2 kB / 350.1 MB, free: 2.375 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000276/0.1866, allocations: 12 kB / 350.2 MB, free: 2.363 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006136/0.1872, allocations: 23.97 kB / 350.2 MB, free: 2.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/0.1874, allocations: 63.81 kB / 350.2 MB, free: 2.277 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.581e-05/0.1875, allocations: 43.98 kB / 350.3 MB, free: 2.234 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003142/0.1906, allocations: 2.12 MB / 352.4 MB, free: 112 kB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1906, allocations: 4 kB / 352.4 MB, free: 108 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.1138/0.3044, allocations: 0.574 MB / 353 MB, free: 105.8 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.001151/0.3056, allocations: 0.8375 MB / 353.8 MB, free: 105.7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.3071, allocations: 0.8262 MB / 354.6 MB, free: 105.6 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3071, allocations: 3.656 kB / 354.6 MB, free: 105.6 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007327/0.3078, allocations: 476.9 kB / 355.1 MB, free: 105.4 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001613/0.3094, allocations: 0.5365 MB / 355.6 MB, free: 105.4 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00405/0.3135, allocations: 4.051 MB / 359.7 MB, free: 103.3 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006345/0.3141, allocations: 1.058 MB / 360.8 MB, free: 102.6 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008212/0.315, allocations: 387 kB / 361.1 MB, free: 102.4 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.3151, allocations: 164.4 kB / 361.3 MB, free: 102.3 MB / 330.7 MB Notification: Performance of SimCode: time 1.242e-06/0.3151, allocations: 0 / 361.3 MB, free: 102.3 MB / 330.7 MB Notification: Performance of Templates: time 0.04433/0.3595, allocations: 32.59 MB / 393.9 MB, free: 69.82 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.599399650003761]