Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.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.001412/0.001412, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.001544/0.001544, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 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 1.507/1.507, allocations: 177.2 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 6.653e-06/6.653e-06, allocations: 4 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.044e-05/3.709e-05, allocations: 2.312 kB / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006644/0.006681, allocations: 3.834 MB / 276.2 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002912/0.009593, allocations: 1.176 MB / 277.3 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004823/0.01007, allocations: 15.94 kB / 277.4 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003654/0.01044, allocations: 102.9 kB / 277.5 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006329/0.01107, allocations: 194.1 kB / 277.7 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008711/0.01194, allocations: 339.5 kB / 278 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00156/0.0135, allocations: 1.12 MB / 279.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004365/0.01394, allocations: 191 kB / 279.3 MB, free: 10.83 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001149/0.01509, allocations: 0.5967 MB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006535/0.01574, allocations: 351.1 kB / 280.2 MB, free: 9.891 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002033/0.01595, allocations: 120 kB / 280.3 MB, free: 9.773 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001766/0.01612, allocations: 116 kB / 280.5 MB, free: 9.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002333/0.01636, allocations: 235.3 kB / 280.7 MB, free: 9.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004085/0.01677, allocations: 323.3 kB / 281 MB, free: 9.113 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001479/0.01824, allocations: 1.293 MB / 282.3 MB, free: 7.816 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.01825, allocations: 0 / 282.3 MB, free: 7.816 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.01825, allocations: 0 / 282.3 MB, free: 7.816 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.468e-06/0.01826, allocations: 0 / 282.3 MB, free: 7.816 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.003237/0.0215, allocations: 1.198 MB / 283.5 MB, free: 6.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.02153, allocations: 16.03 kB / 283.5 MB, free: 6.555 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002883/0.02182, allocations: 128.4 kB / 283.6 MB, free: 6.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007938/0.02261, allocations: 435.3 kB / 284.1 MB, free: 5.977 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.122e-05/0.02267, allocations: 41.69 kB / 284.1 MB, free: 5.934 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001502/0.02282, allocations: 68.36 kB / 284.2 MB, free: 5.867 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002696/0.02552, allocations: 1.27 MB / 285.4 MB, free: 4.465 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.02554, allocations: 192 / 285.4 MB, free: 4.465 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.95e-05/0.02563, allocations: 32.36 kB / 285.5 MB, free: 4.434 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.436e-05/0.02565, allocations: 19.94 kB / 285.5 MB, free: 4.414 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003225/0.02888, allocations: 0.9913 MB / 286.5 MB, free: 3.422 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0055/0.03438, allocations: 2.847 MB / 289.3 MB, free: 472 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1164/0.1508, allocations: 0.7262 MB / 290.1 MB, free: 28.44 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001248/0.152, allocations: 421.7 kB / 290.5 MB, free: 28.43 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.8e-05/0.1521, allocations: 15.67 kB / 290.5 MB, free: 28.43 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001195/0.1533, allocations: 463.4 kB / 290.9 MB, free: 28.38 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.345e-06/0.1533, allocations: 0 / 290.9 MB, free: 28.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.003346/0.1566, allocations: 1.118 MB / 292.1 MB, free: 28.17 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.959e-05/0.1567, allocations: 375.7 kB / 292.4 MB, free: 27.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007727/0.1575, allocations: 0.5385 MB / 293 MB, free: 27.49 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.59e-05/0.1575, allocations: 42.75 kB / 293 MB, free: 27.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002846/0.1578, allocations: 377.1 kB / 293.4 MB, free: 27.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001643/0.158, allocations: 174.1 kB / 293.5 MB, free: 27.09 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003116/0.1583, allocations: 140.8 kB / 293.7 MB, free: 27.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.1584, allocations: 371.1 kB / 294 MB, free: 26.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/0.1597, allocations: 459.6 kB / 294.5 MB, free: 26.5 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001458/0.1611, allocations: 1.037 MB / 295.5 MB, free: 25.61 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002257/0.1634, allocations: 0.97 MB / 296.5 MB, free: 25.08 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.1634, allocations: 2.781 kB / 296.5 MB, free: 25.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002881/0.1663, allocations: 1.23 MB / 297.7 MB, free: 24.55 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.4e-05/0.1663, allocations: 63.31 kB / 297.8 MB, free: 24.49 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.1663, allocations: 7.219 kB / 297.8 MB, free: 24.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.153e-05/0.1663, allocations: 10.41 kB / 297.8 MB, free: 24.49 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.1674, allocations: 224.8 kB / 298 MB, free: 24.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.759e-05/0.1674, allocations: 15.55 kB / 298 MB, free: 24.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001091/0.1685, allocations: 189.4 kB / 298.2 MB, free: 24.42 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.178e-05/0.1686, allocations: 35.56 kB / 298.3 MB, free: 24.41 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.0002896/0.1688, allocations: 224.1 kB / 298.5 MB, free: 24.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.169, allocations: 76.67 kB / 298.6 MB, free: 24.2 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001425/0.1691, allocations: 68.58 kB / 298.6 MB, free: 24.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.1691, allocations: 9.688 kB / 298.6 MB, free: 24.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/0.1692, allocations: 0 / 298.6 MB, free: 24.14 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.1692, allocations: 6.422 kB / 298.6 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003146/0.1723, allocations: 1.457 MB / 300.1 MB, free: 23.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.1723, allocations: 0 / 300.1 MB, free: 23.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008006/0.1731, allocations: 146.5 kB / 300.2 MB, free: 23.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.263e-06/0.1731, allocations: 9.719 kB / 300.2 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.476e-05/0.1732, allocations: 11.56 kB / 300.3 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.1732, allocations: 1.781 kB / 300.3 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.1732, allocations: 0 / 300.3 MB, free: 23.45 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003124/0.1763, allocations: 1.311 MB / 301.6 MB, free: 22.93 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000134/0.1764, allocations: 77.02 kB / 301.6 MB, free: 22.88 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.996e-05/0.1765, allocations: 20.48 kB / 301.7 MB, free: 22.87 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007419/0.1773, allocations: 100.9 kB / 301.8 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.1774, allocations: 54.27 kB / 301.8 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.293e-05/0.1774, allocations: 17.48 kB / 301.8 MB, free: 22.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004603/0.1779, allocations: 371.1 kB / 302.2 MB, free: 22.67 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1779, allocations: 0 / 302.2 MB, free: 22.67 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006601/0.1786, allocations: 177.3 kB / 302.4 MB, free: 22.64 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.0001329/0.1787, allocations: 119.1 kB / 302.5 MB, free: 22.54 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002494/0.1812, allocations: 1.023 MB / 303.5 MB, free: 22.01 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.1812, allocations: 3.906 kB / 303.5 MB, free: 22.01 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000975/0.1822, allocations: 392.9 kB / 303.9 MB, free: 21.83 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006539/0.1828, allocations: 120.3 kB / 304 MB, free: 21.78 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002065/0.1849, allocations: 1.216 MB / 305.2 MB, free: 21.01 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001719/0.1851, allocations: 279.1 kB / 305.5 MB, free: 20.74 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000369/0.1854, allocations: 80.28 kB / 305.6 MB, free: 20.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002083/0.1856, allocations: 52.48 kB / 305.6 MB, free: 20.61 MB / 266.7 MB Notification: Performance of SimCode: time 8.02e-07/0.1856, allocations: 0 / 305.6 MB, free: 20.61 MB / 266.7 MB Notification: Performance of Templates: time 0.01202/0.1977, allocations: 8.76 MB / 314.4 MB, free: 12.05 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.688436530996114]