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.00116/0.00116, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.005622/0.005622, allocations: 161.7 kB / 24.7 MB, free: 9.43 MB / 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 0.9068/0.9068, allocations: 177.2 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.423e-06/1.423e-06, allocations: 0 / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.418e-05/2.56e-05, allocations: 2.281 kB / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.007707/0.007733, allocations: 11.85 MB / 337.7 MB, free: 3.555 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0152/0.02293, allocations: 17.55 MB / 355.2 MB, free: 1.934 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0016/0.02453, allocations: 185.9 kB / 355.4 MB, free: 1.75 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00199/0.02652, allocations: 1.025 MB / 356.4 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005226/0.03175, allocations: 2.386 MB / 358.8 MB, free: 14.31 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003346/0.0351, allocations: 1.429 MB / 360.2 MB, free: 12.88 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00609/0.04119, allocations: 6.644 MB / 366.9 MB, free: 6.215 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004335/0.04162, allocations: 244.9 kB / 367.1 MB, free: 5.945 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001319/0.04294, allocations: 1.5 MB / 368.6 MB, free: 4.441 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006133/0.04355, allocations: 0.7551 MB / 369.4 MB, free: 3.684 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.793e-05/0.04364, allocations: 68 kB / 369.4 MB, free: 3.617 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002516/0.04616, allocations: 1.21 MB / 370.6 MB, free: 2.406 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001678/0.04632, allocations: 309.7 kB / 370.9 MB, free: 2.102 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005067/0.04683, allocations: 0.7009 MB / 371.7 MB, free: 1.398 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002854/0.04968, allocations: 3.628 MB / 375.3 MB, free: 13.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.04969, allocations: 3.938 kB / 375.3 MB, free: 13.75 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.04969, allocations: 4 kB / 375.3 MB, free: 13.75 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2e-05/0.04971, allocations: 0 / 375.3 MB, free: 13.75 MB / 346.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.002853/0.05256, allocations: 3.515 MB / 378.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.05261, allocations: 8.031 kB / 378.8 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002672/0.05288, allocations: 389.6 kB / 379.2 MB, free: 9.789 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002169/0.05505, allocations: 2.351 MB / 381.5 MB, free: 7.336 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.76e-05/0.05507, allocations: 40.92 kB / 381.6 MB, free: 7.293 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.744e-05/0.05516, allocations: 51.89 kB / 381.6 MB, free: 7.242 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008005/0.05596, allocations: 0.7069 MB / 382.3 MB, free: 6.531 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.05598, allocations: 0 / 382.3 MB, free: 6.531 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.305e-05/0.05602, allocations: 16 kB / 382.4 MB, free: 6.516 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.644e-05/0.05604, allocations: 19.98 kB / 382.4 MB, free: 6.496 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008843/0.05692, allocations: 0.7929 MB / 383.2 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002844/0.05977, allocations: 2.576 MB / 385.7 MB, free: 3.086 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007281/0.06049, allocations: 0.5714 MB / 386.3 MB, free: 2.508 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005778/0.06107, allocations: 0.5733 MB / 386.9 MB, free: 1.926 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01436/0.07544, allocations: 13.69 MB / 400.6 MB, free: 3.859 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004707/0.07591, allocations: 358 kB / 400.9 MB, free: 3.492 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.555e-06/0.07591, allocations: 0 / 400.9 MB, free: 3.492 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001778/0.07769, allocations: 1.323 MB / 402.3 MB, free: 2.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/0.07773, allocations: 67.39 kB / 402.3 MB, free: 2.082 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00219/0.07992, allocations: 2.794 MB / 405.1 MB, free: 15.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.337e-05/0.07995, allocations: 33.7 kB / 405.1 MB, free: 15.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007595/0.08071, allocations: 1.392 MB / 406.5 MB, free: 13.83 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.875e-05/0.08081, allocations: 174.6 kB / 406.7 MB, free: 13.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.08099, allocations: 218.4 kB / 406.9 MB, free: 13.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.769e-05/0.08109, allocations: 341.9 kB / 407.3 MB, free: 13.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003169/0.08141, allocations: 241.9 kB / 407.5 MB, free: 12.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004779/0.08189, allocations: 0.5849 MB / 408.1 MB, free: 12.11 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008236/0.08271, allocations: 0.8812 MB / 409 MB, free: 11.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.08272, allocations: 7.984 kB / 409 MB, free: 11.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001274/0.08399, allocations: 1.282 MB / 410.2 MB, free: 9.758 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.08401, allocations: 8 kB / 410.3 MB, free: 9.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.979e-05/0.08407, allocations: 80 kB / 410.3 MB, free: 9.672 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003552/0.08443, allocations: 281.2 kB / 410.6 MB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000299/0.08473, allocations: 167.7 kB / 410.8 MB, free: 9.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006397/0.08537, allocations: 0.8897 MB / 411.7 MB, free: 8.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005116/0.08588, allocations: 123.2 kB / 411.8 MB, free: 8.199 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.22e-05/0.08595, allocations: 64 kB / 411.8 MB, free: 8.137 MB / 378.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.0004488/0.0864, allocations: 409.6 kB / 412.2 MB, free: 7.727 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002137/0.08661, allocations: 377.7 kB / 412.6 MB, free: 7.355 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00159/0.0882, allocations: 1.271 MB / 413.9 MB, free: 6.066 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.08821, allocations: 4 kB / 413.9 MB, free: 6.062 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.08822, allocations: 0 / 413.9 MB, free: 6.062 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.08822, allocations: 0 / 413.9 MB, free: 6.062 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002151/0.09037, allocations: 2.029 MB / 415.9 MB, free: 3.973 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.933e-05/0.09042, allocations: 68 kB / 416 MB, free: 3.906 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001506/0.09057, allocations: 63.88 kB / 416 MB, free: 3.844 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002818/0.09085, allocations: 264.8 kB / 416.3 MB, free: 3.582 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.787e-05/0.09089, allocations: 35.98 kB / 416.3 MB, free: 3.547 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005833/0.09148, allocations: 0.8607 MB / 417.2 MB, free: 2.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.09148, allocations: 4.031 kB / 417.2 MB, free: 2.656 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.09253, allocations: 1.125 MB / 418.3 MB, free: 1.496 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004212/0.09295, allocations: 415.2 kB / 418.7 MB, free: 1.086 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/0.09309, allocations: 8 kB / 418.7 MB, free: 1.078 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003265/0.09341, allocations: 35.95 kB / 418.8 MB, free: 1.043 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.09352, allocations: 63.88 kB / 418.8 MB, free: 0.9805 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.264e-05/0.09357, allocations: 39.98 kB / 418.9 MB, free: 0.9414 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001508/0.09507, allocations: 1.803 MB / 420.7 MB, free: 15.13 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.09507, allocations: 0 / 420.7 MB, free: 15.13 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009083/0.09598, allocations: 0.5696 MB / 421.3 MB, free: 14.56 MB / 394.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.0008664/0.09685, allocations: 0.8306 MB / 422.1 MB, free: 13.72 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001038/0.09789, allocations: 0.819 MB / 422.9 MB, free: 12.88 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.09789, allocations: 7.984 kB / 422.9 MB, free: 12.87 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004986/0.09839, allocations: 475.9 kB / 423.4 MB, free: 12.38 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001294/0.09968, allocations: 0.5924 MB / 424 MB, free: 11.78 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00366/0.1033, allocations: 3.998 MB / 428 MB, free: 7.723 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006547/0.104, allocations: 1.048 MB / 429 MB, free: 6.645 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.1042, allocations: 164.5 kB / 429.2 MB, free: 6.484 MB / 394.7 MB Notification: Performance of SimCode: time 1.062e-06/0.1042, allocations: 0 / 429.2 MB, free: 6.484 MB / 394.7 MB Notification: Performance of Templates: time 0.195/0.2992, allocations: 49.41 MB / 478.6 MB, free: 96.55 MB / 410.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: 8.221297276206315]