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.001351/0.001351, allocations: 96.25 kB / 20.96 MB, free: 3.469 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.001469/0.001469, allocations: 156.9 kB / 24.27 MB, free: 172 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.521/1.521, allocations: 177 MB / 204.5 MB, free: 5.613 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 2.244e-06/2.244e-06, allocations: 0 / 272.2 MB, free: 1.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.356e-05/3.581e-05, allocations: 2.312 kB / 272.2 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006969/0.007004, allocations: 3.834 MB / 276 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003006/0.01001, allocations: 1.179 MB / 277.2 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006808/0.01069, allocations: 11.94 kB / 277.2 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005332/0.01122, allocations: 110.9 kB / 277.3 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000922/0.01215, allocations: 194.2 kB / 277.5 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001171/0.01332, allocations: 331.5 kB / 277.9 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00174/0.01506, allocations: 1.12 MB / 279 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004544/0.01551, allocations: 195 kB / 279.2 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001233/0.01675, allocations: 0.5966 MB / 279.8 MB, free: 10.2 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007081/0.01745, allocations: 359.1 kB / 280.1 MB, free: 9.844 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002808/0.01773, allocations: 119.9 kB / 280.2 MB, free: 9.727 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002717/0.01801, allocations: 120 kB / 280.4 MB, free: 9.609 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002646/0.01827, allocations: 219.3 kB / 280.6 MB, free: 9.395 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006003/0.01887, allocations: 323.3 kB / 280.9 MB, free: 9.078 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001698/0.02057, allocations: 1.297 MB / 282.2 MB, free: 7.777 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.02058, allocations: 0 / 282.2 MB, free: 7.777 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.02058, allocations: 4 kB / 282.2 MB, free: 7.773 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.161e-05/0.02063, allocations: 3.938 kB / 282.2 MB, free: 7.77 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.003638/0.02427, allocations: 1.191 MB / 283.4 MB, free: 6.531 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.959e-05/0.02433, allocations: 15.98 kB / 283.4 MB, free: 6.516 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003272/0.02465, allocations: 136.4 kB / 283.5 MB, free: 6.383 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007995/0.02545, allocations: 431.3 kB / 283.9 MB, free: 5.934 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.186e-05/0.02551, allocations: 49.69 kB / 284 MB, free: 5.883 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001455/0.02566, allocations: 64.38 kB / 284.1 MB, free: 5.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002662/0.02832, allocations: 1.266 MB / 285.3 MB, free: 4.422 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.02834, allocations: 192 / 285.3 MB, free: 4.422 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.895e-05/0.02843, allocations: 32.36 kB / 285.4 MB, free: 4.391 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.76e-05/0.02844, allocations: 27.81 kB / 285.4 MB, free: 4.363 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003131/0.03158, allocations: 0.9913 MB / 286.4 MB, free: 3.367 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005308/0.03688, allocations: 2.843 MB / 289.2 MB, free: 420 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1095/0.1464, allocations: 0.7276 MB / 289.9 MB, free: 28.42 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001207/0.1476, allocations: 421.5 kB / 290.4 MB, free: 28.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.957e-05/0.1477, allocations: 16.75 kB / 290.4 MB, free: 28.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00114/0.1488, allocations: 466 kB / 290.8 MB, free: 28.36 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.284e-06/0.1488, allocations: 1.25 kB / 290.8 MB, free: 28.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.003257/0.1521, allocations: 1.115 MB / 291.9 MB, free: 28.11 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.1522, allocations: 374.3 kB / 292.3 MB, free: 27.67 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007632/0.1529, allocations: 0.539 MB / 292.9 MB, free: 27.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.831e-05/0.153, allocations: 40.55 kB / 292.9 MB, free: 27.39 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002459/0.1532, allocations: 383.1 kB / 293.3 MB, free: 27.15 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.1534, allocations: 173.2 kB / 293.4 MB, free: 27.04 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002512/0.1536, allocations: 136.6 kB / 293.6 MB, free: 26.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.763e-05/0.1537, allocations: 372.1 kB / 293.9 MB, free: 26.63 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/0.1549, allocations: 464.4 kB / 294.4 MB, free: 26.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/0.1563, allocations: 1.034 MB / 295.4 MB, free: 25.55 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002526/0.1589, allocations: 0.9691 MB / 296.4 MB, free: 25.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.1589, allocations: 2.719 kB / 296.4 MB, free: 25.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003644/0.1625, allocations: 1.23 MB / 297.6 MB, free: 24.49 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.994e-05/0.1626, allocations: 66.7 kB / 297.7 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.824e-05/0.1626, allocations: 7.219 kB / 297.7 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.682e-05/0.1626, allocations: 10.06 kB / 297.7 MB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/0.1639, allocations: 226.1 kB / 297.9 MB, free: 24.4 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.387e-05/0.164, allocations: 14.34 kB / 297.9 MB, free: 24.4 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.1651, allocations: 187.3 kB / 298.1 MB, free: 24.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.126e-05/0.1651, allocations: 30.42 kB / 298.1 MB, free: 24.35 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.0003883/0.1655, allocations: 222.4 kB / 298.4 MB, free: 24.17 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.1657, allocations: 81.66 kB / 298.4 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001443/0.1658, allocations: 69.12 kB / 298.5 MB, free: 24.08 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.1658, allocations: 9.156 kB / 298.5 MB, free: 24.08 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.324e-05/0.1658, allocations: 1.156 kB / 298.5 MB, free: 24.08 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.1658, allocations: 6.938 kB / 298.5 MB, free: 24.07 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003349/0.1692, allocations: 1.455 MB / 300 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.1692, allocations: 0 / 300 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007981/0.17, allocations: 148.2 kB / 300.1 MB, free: 23.4 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.234e-06/0.17, allocations: 6.594 kB / 300.1 MB, free: 23.39 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.641e-05/0.17, allocations: 17.44 kB / 300.2 MB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.111e-06/0.17, allocations: 3.188 kB / 300.2 MB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1701, allocations: 0 / 300.2 MB, free: 23.38 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003325/0.1734, allocations: 1.313 MB / 301.5 MB, free: 22.87 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.719e-05/0.1735, allocations: 77.8 kB / 301.5 MB, free: 22.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.534e-05/0.1736, allocations: 20.03 kB / 301.6 MB, free: 22.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000756/0.1743, allocations: 103.8 kB / 301.7 MB, free: 22.79 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001742/0.1745, allocations: 48.27 kB / 301.7 MB, free: 22.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.758e-05/0.1745, allocations: 16.34 kB / 301.7 MB, free: 22.78 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004697/0.175, allocations: 366.9 kB / 302.1 MB, free: 22.61 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.175, allocations: 3.719 kB / 302.1 MB, free: 22.61 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000667/0.1757, allocations: 182.5 kB / 302.3 MB, free: 22.57 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.000149/0.1758, allocations: 115.8 kB / 302.4 MB, free: 22.48 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002377/0.1782, allocations: 1.027 MB / 303.4 MB, free: 21.95 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1782, allocations: 0 / 303.4 MB, free: 21.95 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009176/0.1791, allocations: 392.7 kB / 303.8 MB, free: 21.77 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000605/0.1797, allocations: 117.3 kB / 303.9 MB, free: 21.71 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002217/0.182, allocations: 1.217 MB / 305.1 MB, free: 20.95 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001721/0.1821, allocations: 280.4 kB / 305.4 MB, free: 20.64 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004175/0.1825, allocations: 80.94 kB / 305.5 MB, free: 20.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002061/0.1827, allocations: 56.48 kB / 305.5 MB, free: 20.51 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.1827, allocations: 0 / 305.5 MB, free: 20.51 MB / 266.7 MB Notification: Performance of Templates: time 0.01213/0.1949, allocations: 8.754 MB / 314.3 MB, free: 11.96 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] 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.5807208030018955]