Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001982/0.001982, allocations: 84.34 kB / 20.95 MB, free: 3.453 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.002385/0.002385, allocations: 169.3 kB / 24.27 MB, free: 144 kB / 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 1.517/1.517, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.223e-05/2.359e-05, allocations: 2.312 kB / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01514/0.01516, allocations: 11.86 MB / 284.2 MB, free: 5.926 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1304/0.1456, allocations: 17.51 MB / 301.7 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00192/0.1475, allocations: 195.6 kB / 301.9 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002638/0.1501, allocations: 1.037 MB / 302.9 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007112/0.1572, allocations: 2.391 MB / 305.3 MB, free: 10.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004933/0.1622, allocations: 1.43 MB / 306.7 MB, free: 9.961 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008455/0.1706, allocations: 6.629 MB / 313.4 MB, free: 6.777 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005416/0.1712, allocations: 251 kB / 313.6 MB, free: 6.605 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001795/0.173, allocations: 1.501 MB / 315.1 MB, free: 5.852 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008377/0.1738, allocations: 0.752 MB / 315.9 MB, free: 5.258 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000147/0.1739, allocations: 72 kB / 315.9 MB, free: 5.188 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003183/0.1771, allocations: 1.21 MB / 317.1 MB, free: 3.977 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001898/0.1773, allocations: 309.7 kB / 317.4 MB, free: 3.672 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008048/0.1781, allocations: 0.7009 MB / 318.1 MB, free: 2.969 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003653/0.1818, allocations: 3.635 MB / 321.8 MB, free: 15.32 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1818, allocations: 0 / 321.8 MB, free: 15.32 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1818, allocations: 0 / 321.8 MB, free: 15.32 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.609e-05/0.1818, allocations: 0 / 321.8 MB, free: 15.32 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.005556/0.1874, allocations: 3.513 MB / 325.3 MB, free: 11.75 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.1874, allocations: 8.031 kB / 325.3 MB, free: 11.75 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006619/0.1881, allocations: 429.5 kB / 325.7 MB, free: 11.32 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0044/0.1925, allocations: 2.691 MB / 328.4 MB, free: 8.535 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.955e-05/0.1925, allocations: 40.98 kB / 328.4 MB, free: 8.492 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001402/0.1927, allocations: 55.95 kB / 328.5 MB, free: 8.438 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001503/0.1942, allocations: 0.6992 MB / 329.2 MB, free: 7.734 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.1942, allocations: 0 / 329.2 MB, free: 7.734 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.655e-05/0.1943, allocations: 20 kB / 329.2 MB, free: 7.715 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.099e-05/0.1943, allocations: 27.91 kB / 329.2 MB, free: 7.688 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001707/0.196, allocations: 0.7851 MB / 330 MB, free: 6.906 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0054/0.2014, allocations: 2.581 MB / 332.6 MB, free: 4.285 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001431/0.2028, allocations: 0.5636 MB / 333.2 MB, free: 3.711 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001116/0.204, allocations: 0.5811 MB / 333.8 MB, free: 3.121 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02875/0.2327, allocations: 15.22 MB / 349 MB, free: 3.523 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008572/0.2336, allocations: 358 kB / 349.3 MB, free: 3.164 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.384e-06/0.2336, allocations: 0 / 349.3 MB, free: 3.164 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.004132/0.2377, allocations: 1.339 MB / 350.7 MB, free: 1.812 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.599e-05/0.2378, allocations: 59.41 kB / 350.7 MB, free: 1.742 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00418/0.242, allocations: 2.802 MB / 353.5 MB, free: 14.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.512e-05/0.242, allocations: 29.7 kB / 353.5 MB, free: 14.88 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001549/0.2436, allocations: 1.4 MB / 354.9 MB, free: 13.47 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002028/0.2438, allocations: 166.6 kB / 355.1 MB, free: 13.31 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003522/0.2441, allocations: 226.3 kB / 355.3 MB, free: 13.08 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.2443, allocations: 337.9 kB / 355.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006126/0.2449, allocations: 233.9 kB / 355.9 MB, free: 12.52 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009755/0.2459, allocations: 0.5966 MB / 356.5 MB, free: 11.75 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001719/0.2476, allocations: 0.8773 MB / 357.4 MB, free: 10.71 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.104e-05/0.2476, allocations: 4.75 kB / 357.4 MB, free: 10.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003009/0.2506, allocations: 1.321 MB / 358.7 MB, free: 9.367 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/0.2507, allocations: 12 kB / 358.7 MB, free: 9.355 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001247/0.2508, allocations: 80 kB / 358.8 MB, free: 9.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006552/0.2515, allocations: 277.1 kB / 359 MB, free: 9.004 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006261/0.2521, allocations: 167.7 kB / 359.2 MB, free: 8.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.2533, allocations: 0.8875 MB / 360.1 MB, free: 7.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001205/0.2545, allocations: 114.4 kB / 360.2 MB, free: 7.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/0.2546, allocations: 64 kB / 360.3 MB, free: 7.758 MB / 314.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.0008726/0.2555, allocations: 426.1 kB / 360.7 MB, free: 7.332 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005639/0.256, allocations: 389.6 kB / 361.1 MB, free: 6.949 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003194/0.2592, allocations: 1.264 MB / 362.3 MB, free: 5.68 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/0.2593, allocations: 15.92 kB / 362.3 MB, free: 5.664 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.2593, allocations: 0 / 362.3 MB, free: 5.664 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.2593, allocations: 0 / 362.3 MB, free: 5.664 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00402/0.2633, allocations: 2.03 MB / 364.4 MB, free: 3.574 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001115/0.2634, allocations: 71.98 kB / 364.4 MB, free: 3.504 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003273/0.2637, allocations: 55.95 kB / 364.5 MB, free: 3.449 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005552/0.2643, allocations: 264.8 kB / 364.8 MB, free: 3.188 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.862e-05/0.2644, allocations: 32 kB / 364.8 MB, free: 3.156 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001158/0.2655, allocations: 0.8645 MB / 365.7 MB, free: 2.266 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/0.2655, allocations: 8.016 kB / 365.7 MB, free: 2.258 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00237/0.2679, allocations: 1.148 MB / 366.8 MB, free: 1.07 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009851/0.2689, allocations: 419.3 kB / 367.2 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002845/0.2692, allocations: 11.94 kB / 367.2 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006761/0.2698, allocations: 35.97 kB / 367.3 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/0.27, allocations: 67.91 kB / 367.3 MB, free: 0.543 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.52e-05/0.2701, allocations: 36 kB / 367.4 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003151/0.2733, allocations: 1.811 MB / 369.2 MB, free: 14.69 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2733, allocations: 0 / 369.2 MB, free: 14.69 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001847/0.2751, allocations: 0.5774 MB / 369.8 MB, free: 14.11 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.001533/0.2766, allocations: 0.8345 MB / 370.6 MB, free: 13.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002069/0.2787, allocations: 0.8135 MB / 371.4 MB, free: 12.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2787, allocations: 0 / 371.4 MB, free: 12.43 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.2797, allocations: 477.5 kB / 371.9 MB, free: 11.95 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002746/0.2825, allocations: 0.6207 MB / 372.5 MB, free: 11.33 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006499/0.289, allocations: 4.015 MB / 376.5 MB, free: 7.238 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001167/0.2901, allocations: 1.045 MB / 377.6 MB, free: 6.164 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001214/0.2914, allocations: 394.8 kB / 377.9 MB, free: 5.773 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002672/0.2916, allocations: 156.5 kB / 378.1 MB, free: 5.621 MB / 330.7 MB Notification: Performance of SimCode: time 1.693e-06/0.2916, allocations: 0 / 378.1 MB, free: 5.621 MB / 330.7 MB Notification: Performance of Templates: time 0.06161/0.3532, allocations: 32.45 MB / 410.5 MB, free: 5.66 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.5019906390225515]