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.00135/0.00135, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.001726/0.001726, allocations: 159.6 kB / 25.74 MB, free: 8.934 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.9893/0.9893, allocations: 158.6 MB / 187.5 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.663e-06/1.663e-06, allocations: 0 / 251.1 MB, free: 7.812 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.887e-05/2.053e-05, allocations: 2.312 kB / 251.1 MB, free: 7.809 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.009129/0.00915, allocations: 12.71 MB / 263.8 MB, free: 11.04 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01716/0.02631, allocations: 18.38 MB / 282.2 MB, free: 8.582 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002574/0.02888, allocations: 193.8 kB / 282.4 MB, free: 8.391 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002605/0.03148, allocations: 1.013 MB / 283.4 MB, free: 7.371 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00661/0.03809, allocations: 2.35 MB / 285.7 MB, free: 5.004 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003781/0.04188, allocations: 1.382 MB / 287.1 MB, free: 3.609 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008036/0.04991, allocations: 6.422 MB / 293.6 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006348/0.05055, allocations: 245 kB / 293.8 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001459/0.05201, allocations: 1.375 MB / 295.2 MB, free: 11.52 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006587/0.05266, allocations: 0.7241 MB / 295.9 MB, free: 10.79 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001145/0.05278, allocations: 72 kB / 296 MB, free: 10.72 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002419/0.0552, allocations: 1.085 MB / 297 MB, free: 9.633 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002011/0.0554, allocations: 309.7 kB / 297.3 MB, free: 9.328 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000715/0.05611, allocations: 0.7048 MB / 298.1 MB, free: 8.621 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003473/0.05959, allocations: 2.735 MB / 300.8 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.05959, allocations: 0 / 300.8 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.05959, allocations: 0 / 300.8 MB, free: 5.875 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.52e-05/0.05963, allocations: 0 / 300.8 MB, free: 5.875 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.003147/0.06277, allocations: 3.749 MB / 304.5 MB, free: 2.062 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.06282, allocations: 11.98 kB / 304.6 MB, free: 2.051 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003503/0.06317, allocations: 425.6 kB / 305 MB, free: 1.633 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002639/0.06581, allocations: 2.721 MB / 307.7 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.649e-05/0.06583, allocations: 37 kB / 307.7 MB, free: 14.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.662e-05/0.06592, allocations: 47.95 kB / 307.8 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006885/0.06661, allocations: 0.5241 MB / 308.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.06662, allocations: 0 / 308.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.889e-05/0.06667, allocations: 24 kB / 308.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.06669, allocations: 19.98 kB / 308.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000557/0.06724, allocations: 474.4 kB / 308.8 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003099/0.07034, allocations: 2.679 MB / 311.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004601/0.0708, allocations: 357.6 kB / 311.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004293/0.07123, allocations: 429.9 kB / 312.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0155/0.08673, allocations: 15.24 MB / 327.5 MB, free: 10.55 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003289/0.08706, allocations: 267.6 kB / 327.8 MB, free: 10.28 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.823e-06/0.08706, allocations: 7.938 kB / 327.8 MB, free: 10.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.001831/0.08889, allocations: 1.076 MB / 328.8 MB, free: 9.184 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.258e-05/0.08893, allocations: 59.39 kB / 328.9 MB, free: 9.113 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00237/0.0913, allocations: 3.008 MB / 331.9 MB, free: 6.066 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.015e-05/0.09134, allocations: 33.7 kB / 331.9 MB, free: 6.027 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000944/0.09228, allocations: 1.566 MB / 333.5 MB, free: 4.453 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.09239, allocations: 174.6 kB / 333.7 MB, free: 4.281 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001919/0.09258, allocations: 236 kB / 333.9 MB, free: 4.043 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.09272, allocations: 0.5159 MB / 334.4 MB, free: 3.52 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/0.0929, allocations: 125.9 kB / 334.5 MB, free: 3.398 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006913/0.09359, allocations: 0.6431 MB / 335.2 MB, free: 2.523 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006751/0.09427, allocations: 0.8301 MB / 336 MB, free: 1.461 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.09427, allocations: 4 kB / 336 MB, free: 1.457 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001306/0.09558, allocations: 1.106 MB / 337.1 MB, free: 348 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.979e-05/0.09561, allocations: 12 kB / 337.1 MB, free: 336 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.158e-05/0.09568, allocations: 80 kB / 337.2 MB, free: 256 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003886/0.09607, allocations: 263.6 kB / 337.5 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003208/0.09639, allocations: 167.6 kB / 337.6 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006523/0.09704, allocations: 1.089 MB / 338.7 MB, free: 14.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006141/0.09766, allocations: 95.39 kB / 338.8 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.638e-05/0.09774, allocations: 64 kB / 338.9 MB, free: 14.55 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.0003769/0.09812, allocations: 212.2 kB / 339.1 MB, free: 14.33 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002767/0.0984, allocations: 393.6 kB / 339.5 MB, free: 13.94 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001389/0.09978, allocations: 1.095 MB / 340.6 MB, free: 12.83 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.09979, allocations: 8 kB / 340.6 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.0998, allocations: 0 / 340.6 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.0998, allocations: 3.984 kB / 340.6 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002393/0.1022, allocations: 2.159 MB / 342.7 MB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.645e-05/0.1023, allocations: 71.98 kB / 342.8 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/0.1024, allocations: 51.91 kB / 342.9 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000286/0.1027, allocations: 247.7 kB / 343.1 MB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.814e-05/0.1027, allocations: 35.98 kB / 343.1 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005922/0.1033, allocations: 1.062 MB / 344.2 MB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.1033, allocations: 4 kB / 344.2 MB, free: 9.078 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008868/0.1042, allocations: 1.042 MB / 345.2 MB, free: 7.988 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004176/0.1046, allocations: 423.3 kB / 345.7 MB, free: 7.57 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001672/0.1048, allocations: 12 kB / 345.7 MB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003174/0.1051, allocations: 23.97 kB / 345.7 MB, free: 7.535 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.1052, allocations: 67.89 kB / 345.8 MB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.928e-05/0.1053, allocations: 47.98 kB / 345.8 MB, free: 7.422 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001394/0.1067, allocations: 1.648 MB / 347.5 MB, free: 5.77 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1067, allocations: 4 kB / 347.5 MB, free: 5.766 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009297/0.1076, allocations: 0.5774 MB / 348 MB, free: 5.188 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.0008482/0.1084, allocations: 0.8426 MB / 348.9 MB, free: 4.332 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001061/0.1095, allocations: 0.6548 MB / 349.5 MB, free: 3.652 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1095, allocations: 0 / 349.5 MB, free: 3.652 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003748/0.1099, allocations: 401.5 kB / 349.9 MB, free: 3.23 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.1109, allocations: 0.5216 MB / 350.4 MB, free: 2.703 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1008/0.2117, allocations: 3.786 MB / 354.2 MB, free: 78.83 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.212, allocations: 365.5 kB / 354.6 MB, free: 78.73 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007597/0.2127, allocations: 394.6 kB / 355 MB, free: 78.7 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001534/0.2129, allocations: 164.8 kB / 355.1 MB, free: 78.7 MB / 330.7 MB Notification: Performance of SimCode: time 2.284e-06/0.2129, allocations: 3.938 kB / 355.1 MB, free: 78.7 MB / 330.7 MB Notification: Performance of Templates: time 0.03376/0.2467, allocations: 32.74 MB / 387.9 MB, free: 56.73 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.6620408159215003]