Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001933/0.001933, allocations: 99.53 kB / 20.96 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002104/0.002104, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.632/1.632, allocations: 177 MB / 204.4 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.685e-05/2.858e-05, allocations: 2.312 kB / 272.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006414/0.006443, allocations: 4.132 MB / 276.3 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002273/0.008716, allocations: 1.195 MB / 277.5 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002375/0.008954, allocations: 15.94 kB / 277.5 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002654/0.009219, allocations: 106.9 kB / 277.7 MB, free: 12.33 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004033/0.009622, allocations: 198.1 kB / 277.8 MB, free: 12.13 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006835/0.01031, allocations: 339.5 kB / 278.2 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001236/0.01154, allocations: 1.112 MB / 279.3 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003444/0.01189, allocations: 191 kB / 279.5 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007818/0.01267, allocations: 0.6122 MB / 280.1 MB, free: 9.887 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005436/0.01321, allocations: 363.1 kB / 280.4 MB, free: 9.531 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001809/0.01339, allocations: 116 kB / 280.6 MB, free: 9.418 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000191/0.01358, allocations: 120 kB / 280.7 MB, free: 9.301 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002414/0.01383, allocations: 231.3 kB / 280.9 MB, free: 9.074 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004253/0.01425, allocations: 315.3 kB / 281.2 MB, free: 8.766 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001506/0.01576, allocations: 1.305 MB / 282.5 MB, free: 7.457 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.01576, allocations: 3.938 kB / 282.5 MB, free: 7.453 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.01576, allocations: 0 / 282.5 MB, free: 7.453 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.01577, allocations: 4 kB / 282.5 MB, free: 7.449 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.003027/0.0188, allocations: 1.275 MB / 283.8 MB, free: 6.121 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.01884, allocations: 15.98 kB / 283.8 MB, free: 6.105 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002598/0.0191, allocations: 136.4 kB / 283.9 MB, free: 5.973 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007327/0.01984, allocations: 434.2 kB / 284.4 MB, free: 5.52 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.769e-05/0.01989, allocations: 45.69 kB / 284.4 MB, free: 5.473 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/0.02002, allocations: 64.38 kB / 284.5 MB, free: 5.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002289/0.0223, allocations: 1.288 MB / 285.8 MB, free: 3.969 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/0.02233, allocations: 4.125 kB / 285.8 MB, free: 3.965 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.146e-05/0.02241, allocations: 28.38 kB / 285.8 MB, free: 3.938 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.02243, allocations: 15.94 kB / 285.8 MB, free: 3.922 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00236/0.02479, allocations: 0.847 MB / 286.7 MB, free: 3.07 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1268/0.1516, allocations: 3.564 MB / 290.2 MB, free: 26.42 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001819/0.1534, allocations: 0.646 MB / 290.9 MB, free: 26.38 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009183/0.1543, allocations: 379.1 kB / 291.2 MB, free: 26.37 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.72e-05/0.1544, allocations: 20.73 kB / 291.3 MB, free: 26.37 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009636/0.1554, allocations: 426.6 kB / 291.7 MB, free: 26.31 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 3.116e-06/0.1554, allocations: 1.062 kB / 291.7 MB, free: 26.31 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.002465/0.1578, allocations: 0.9652 MB / 292.6 MB, free: 26.14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.025e-05/0.1579, allocations: 374.8 kB / 293 MB, free: 25.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007518/0.1587, allocations: 0.6988 MB / 293.7 MB, free: 25.34 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.142e-05/0.1587, allocations: 38.27 kB / 293.7 MB, free: 25.3 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002355/0.1589, allocations: 466.3 kB / 294.2 MB, free: 24.96 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.1591, allocations: 190 kB / 294.4 MB, free: 24.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000264/0.1593, allocations: 172.5 kB / 294.6 MB, free: 24.75 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.1595, allocations: 0.5914 MB / 295.1 MB, free: 24.2 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000895/0.1604, allocations: 405.5 kB / 295.5 MB, free: 24.05 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001083/0.1615, allocations: 1.113 MB / 296.7 MB, free: 23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001694/0.1632, allocations: 0.9957 MB / 297.6 MB, free: 22.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.1632, allocations: 2.297 kB / 297.6 MB, free: 22.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002349/0.1655, allocations: 1.121 MB / 298.8 MB, free: 21.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.799e-05/0.1656, allocations: 64.44 kB / 298.8 MB, free: 21.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.1656, allocations: 5.875 kB / 298.8 MB, free: 21.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.835e-05/0.1656, allocations: 9.594 kB / 298.8 MB, free: 21.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008844/0.1665, allocations: 196.7 kB / 299 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.902e-05/0.1665, allocations: 11.73 kB / 299.1 MB, free: 21.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008011/0.1673, allocations: 131.6 kB / 299.2 MB, free: 21.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.755e-05/0.1674, allocations: 31.48 kB / 299.2 MB, free: 21.79 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003036/0.1677, allocations: 277.6 kB / 299.5 MB, free: 21.55 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.1678, allocations: 80.02 kB / 299.6 MB, free: 21.51 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001688/0.168, allocations: 66.67 kB / 299.6 MB, free: 21.47 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.168, allocations: 5.984 kB / 299.6 MB, free: 21.47 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.168, allocations: 5.422 kB / 299.6 MB, free: 21.47 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.168, allocations: 2.531 kB / 299.6 MB, free: 21.47 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002752/0.1708, allocations: 1.535 MB / 301.2 MB, free: 20.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1708, allocations: 0 / 301.2 MB, free: 20.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006385/0.1714, allocations: 118.9 kB / 301.3 MB, free: 20.69 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.1714, allocations: 2.75 kB / 301.3 MB, free: 20.69 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.518e-05/0.1715, allocations: 18.84 kB / 301.3 MB, free: 20.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.1715, allocations: 5.375 kB / 301.3 MB, free: 20.68 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1715, allocations: 0 / 301.3 MB, free: 20.68 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002633/0.1741, allocations: 1.222 MB / 302.5 MB, free: 20.14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000147/0.1742, allocations: 64.33 kB / 302.6 MB, free: 20.1 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.1743, allocations: 14.11 kB / 302.6 MB, free: 20.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000554/0.1749, allocations: 61.3 kB / 302.7 MB, free: 20.09 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.175, allocations: 57.77 kB / 302.7 MB, free: 20.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.157e-05/0.1751, allocations: 15.72 kB / 302.7 MB, free: 20.06 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004738/0.1756, allocations: 439.9 kB / 303.2 MB, free: 19.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1756, allocations: 1.719 kB / 303.2 MB, free: 19.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006428/0.1762, allocations: 192.9 kB / 303.4 MB, free: 19.8 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001348/0.1763, allocations: 116 kB / 303.5 MB, free: 19.69 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001796/0.1781, allocations: 0.983 MB / 304.5 MB, free: 19.26 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.1781, allocations: 0 / 304.5 MB, free: 19.26 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007564/0.1789, allocations: 371.9 kB / 304.8 MB, free: 19.15 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005832/0.1795, allocations: 127 kB / 304.9 MB, free: 19.11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.1813, allocations: 1.201 MB / 306.1 MB, free: 18.29 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000161/0.1815, allocations: 287.3 kB / 306.4 MB, free: 18.05 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003438/0.1818, allocations: 77.28 kB / 306.5 MB, free: 17.99 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001985/0.182, allocations: 55.97 kB / 306.6 MB, free: 17.94 MB / 266.7 MB Notification: Performance of SimCode: time 8.62e-07/0.182, allocations: 0 / 306.6 MB, free: 17.94 MB / 266.7 MB Notification: Performance of Templates: time 0.01228/0.1943, allocations: 8.768 MB / 315.3 MB, free: 9.449 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.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: 4.825169474934228]