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.000983/0.000983, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.0009313/0.0009313, allocations: 171.6 kB / 25.33 MB, free: 8.598 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.8825/0.8825, allocations: 158.6 MB / 187.2 MB, free: 2.926 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.393e-06/1.393e-06, allocations: 0 / 251 MB, free: 7.531 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.939e-05/2.078e-05, allocations: 5.266 kB / 251 MB, free: 7.527 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.009824/0.009844, allocations: 12.75 MB / 263.8 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01908/0.02892, allocations: 18.42 MB / 282.2 MB, free: 8.223 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002784/0.03171, allocations: 193.8 kB / 282.4 MB, free: 8.031 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002314/0.03402, allocations: 1.009 MB / 283.4 MB, free: 7.016 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005727/0.03975, allocations: 2.358 MB / 285.8 MB, free: 4.641 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003398/0.04315, allocations: 1.382 MB / 287.2 MB, free: 3.246 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006194/0.04934, allocations: 6.554 MB / 293.7 MB, free: 12.67 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004049/0.04975, allocations: 248.9 kB / 293.9 MB, free: 12.39 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001162/0.05091, allocations: 1.368 MB / 295.3 MB, free: 11.02 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006398/0.05155, allocations: 0.7319 MB / 296 MB, free: 10.29 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001105/0.05166, allocations: 68 kB / 296.1 MB, free: 10.22 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001951/0.05361, allocations: 1.081 MB / 297.2 MB, free: 9.137 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002017/0.05381, allocations: 313.7 kB / 297.5 MB, free: 8.828 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000552/0.05436, allocations: 0.7126 MB / 298.2 MB, free: 8.113 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002373/0.05673, allocations: 2.727 MB / 300.9 MB, free: 5.375 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.05674, allocations: 0 / 300.9 MB, free: 5.375 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.05674, allocations: 0 / 300.9 MB, free: 5.375 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.869e-05/0.05677, allocations: 0 / 300.9 MB, free: 5.375 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.003032/0.0598, allocations: 3.749 MB / 304.7 MB, free: 1.562 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.05984, allocations: 11.98 kB / 304.7 MB, free: 1.551 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003362/0.06018, allocations: 429.6 kB / 305.1 MB, free: 1.129 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002331/0.06251, allocations: 2.721 MB / 307.8 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.824e-05/0.06254, allocations: 33 kB / 307.9 MB, free: 14.28 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.811e-05/0.06263, allocations: 47.95 kB / 307.9 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006785/0.06331, allocations: 0.5241 MB / 308.4 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.06332, allocations: 4 kB / 308.4 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.394e-05/0.06336, allocations: 16 kB / 308.5 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.859e-05/0.06338, allocations: 19.98 kB / 308.5 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005487/0.06393, allocations: 474.3 kB / 308.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00305/0.06698, allocations: 2.675 MB / 311.6 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004626/0.06744, allocations: 353.7 kB / 312 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004276/0.06787, allocations: 441.8 kB / 312.4 MB, free: 9.688 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01535/0.08322, allocations: 15.24 MB / 327.6 MB, free: 10.06 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003444/0.08356, allocations: 275.5 kB / 327.9 MB, free: 9.777 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 2.024e-06/0.08356, allocations: 4 kB / 327.9 MB, free: 9.773 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.001536/0.0851, allocations: 1.069 MB / 329 MB, free: 8.695 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.97e-05/0.08514, allocations: 63.39 kB / 329 MB, free: 8.621 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002429/0.08757, allocations: 3.008 MB / 332.1 MB, free: 5.574 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.571e-05/0.0876, allocations: 37.7 kB / 332.1 MB, free: 5.531 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009216/0.08852, allocations: 1.562 MB / 333.7 MB, free: 3.961 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.08863, allocations: 182.5 kB / 333.8 MB, free: 3.781 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001864/0.08881, allocations: 228 kB / 334.1 MB, free: 3.551 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.08894, allocations: 0.5199 MB / 334.6 MB, free: 3.023 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000183/0.08913, allocations: 121.9 kB / 334.7 MB, free: 2.906 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000411/0.08954, allocations: 0.6354 MB / 335.3 MB, free: 2.039 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000651/0.09019, allocations: 0.834 MB / 336.2 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.09019, allocations: 4 kB / 336.2 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001157/0.09135, allocations: 1.106 MB / 337.3 MB, free: 15.85 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.09137, allocations: 12 kB / 337.3 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.602e-05/0.09145, allocations: 80.09 kB / 337.4 MB, free: 15.76 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00038/0.09183, allocations: 263.5 kB / 337.6 MB, free: 15.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003123/0.09214, allocations: 167.7 kB / 337.8 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006677/0.09281, allocations: 1.089 MB / 338.9 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004612/0.09327, allocations: 95.39 kB / 339 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.55e-05/0.09335, allocations: 64 kB / 339 MB, free: 14.06 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.00029/0.09364, allocations: 216.2 kB / 339.2 MB, free: 13.84 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002401/0.09388, allocations: 393.6 kB / 339.6 MB, free: 13.45 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001344/0.09522, allocations: 1.099 MB / 340.7 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.09523, allocations: 8 kB / 340.7 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.09523, allocations: 0 / 340.7 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.09524, allocations: 3.984 kB / 340.7 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002074/0.09731, allocations: 2.155 MB / 342.9 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.91e-05/0.09737, allocations: 71.98 kB / 343 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001325/0.0975, allocations: 51.91 kB / 343 MB, free: 9.965 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002846/0.09779, allocations: 251.7 kB / 343.3 MB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.883e-05/0.09783, allocations: 31.98 kB / 343.3 MB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006012/0.09843, allocations: 1.073 MB / 344.4 MB, free: 8.578 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.09843, allocations: 4 kB / 344.4 MB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008483/0.09928, allocations: 1.035 MB / 345.4 MB, free: 7.492 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003981/0.09968, allocations: 423.3 kB / 345.8 MB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001367/0.09981, allocations: 8 kB / 345.8 MB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003017/0.1001, allocations: 28 kB / 345.8 MB, free: 7.039 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.1002, allocations: 63.88 kB / 345.9 MB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.27e-05/0.1003, allocations: 43.98 kB / 346 MB, free: 6.934 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00139/0.1017, allocations: 1.644 MB / 347.6 MB, free: 5.285 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1017, allocations: 4 kB / 347.6 MB, free: 5.281 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009205/0.1026, allocations: 0.5774 MB / 348.2 MB, free: 4.703 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.000859/0.1034, allocations: 0.8427 MB / 349 MB, free: 3.848 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008025/0.1042, allocations: 0.6546 MB / 349.7 MB, free: 3.168 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1042, allocations: 3.938 kB / 349.7 MB, free: 3.164 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003825/0.1046, allocations: 401.5 kB / 350.1 MB, free: 2.742 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/0.1057, allocations: 0.5296 MB / 350.6 MB, free: 2.207 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1138/0.2195, allocations: 3.781 MB / 354.4 MB, free: 88.32 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002777/0.2198, allocations: 364.5 kB / 354.7 MB, free: 88.22 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008406/0.2206, allocations: 389.2 kB / 355.1 MB, free: 88.19 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/0.2208, allocations: 171.2 kB / 355.3 MB, free: 88.19 MB / 330.7 MB Notification: Performance of SimCode: time 1.673e-06/0.2208, allocations: 3.75 kB / 355.3 MB, free: 88.19 MB / 330.7 MB Notification: Performance of Templates: time 0.03349/0.2543, allocations: 32.74 MB / 388 MB, free: 63.7 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.758689370006323]