Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0007685/0.0007685, allocations: 80.92 kB / 22.29 MB, free: 2.207 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.0008866/0.0008866, allocations: 167.6 kB / 25.7 MB, free: 8.438 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.9174/0.9174, allocations: 158.6 MB / 187.6 MB, free: 2.781 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.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 251.6 MB, free: 7.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.938e-05/2.108e-05, allocations: 2.312 kB / 251.6 MB, free: 7.219 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00416/0.004181, allocations: 3.954 MB / 255.5 MB, free: 3.242 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.006104, allocations: 1.15 MB / 256.7 MB, free: 2.082 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002324/0.006336, allocations: 11.94 kB / 256.7 MB, free: 2.07 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001756/0.006512, allocations: 94.97 kB / 256.8 MB, free: 1.977 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002818/0.006794, allocations: 186.3 kB / 257 MB, free: 1.793 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004728/0.007266, allocations: 287.6 kB / 257.2 MB, free: 1.512 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007429/0.008009, allocations: 0.9912 MB / 258.2 MB, free: 0.5156 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000242/0.008251, allocations: 193 kB / 258.4 MB, free: 324 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005182/0.00877, allocations: 0.5537 MB / 259 MB, free: 15.76 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003392/0.009109, allocations: 347.1 kB / 259.3 MB, free: 15.42 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.009215, allocations: 116 kB / 259.4 MB, free: 15.31 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.91e-05/0.009304, allocations: 112 kB / 259.5 MB, free: 15.2 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001123/0.009416, allocations: 215.4 kB / 259.7 MB, free: 14.99 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002069/0.009623, allocations: 303.4 kB / 260 MB, free: 14.69 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005528/0.01018, allocations: 0.6776 MB / 260.7 MB, free: 14.01 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.01018, allocations: 4 kB / 260.7 MB, free: 14.01 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.01018, allocations: 0 / 260.7 MB, free: 14.01 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.01019, allocations: 0 / 260.7 MB, free: 14.01 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001244/0.01144, allocations: 1.013 MB / 261.7 MB, free: 12.96 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.01147, allocations: 15.98 kB / 261.8 MB, free: 12.94 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000129/0.0116, allocations: 92.86 kB / 261.8 MB, free: 12.85 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003434/0.01195, allocations: 267.7 kB / 262.1 MB, free: 12.57 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.18e-05/0.01199, allocations: 41.69 kB / 262.1 MB, free: 12.53 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.846e-05/0.01206, allocations: 68.36 kB / 262.2 MB, free: 12.46 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007661/0.01282, allocations: 0.8225 MB / 263 MB, free: 11.52 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.01283, allocations: 192 / 263 MB, free: 11.52 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.707e-05/0.01287, allocations: 27.94 kB / 263.1 MB, free: 11.49 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.01288, allocations: 19.94 kB / 263.1 MB, free: 11.47 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003214/0.0132, allocations: 226.8 kB / 263.3 MB, free: 11.25 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002145/0.01535, allocations: 2.191 MB / 265.5 MB, free: 8.961 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004989/0.01585, allocations: 316.3 kB / 265.8 MB, free: 8.645 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002068/0.01605, allocations: 154.3 kB / 266 MB, free: 8.492 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.287e-05/0.01609, allocations: 8.5 kB / 266 MB, free: 8.484 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002528/0.01634, allocations: 234 kB / 266.2 MB, free: 8.238 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 2.324e-06/0.01634, allocations: 0 / 266.2 MB, free: 8.238 MB / 250.7 MB Notification: Performance of matching and sorting (n=50): time 0.0005478/0.01689, allocations: 318 kB / 266.5 MB, free: 7.922 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.459e-05/0.01698, allocations: 273.5 kB / 266.8 MB, free: 7.594 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002827/0.01727, allocations: 427 kB / 267.2 MB, free: 7.164 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.166e-05/0.01731, allocations: 45.7 kB / 267.2 MB, free: 7.113 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.01747, allocations: 305.4 kB / 267.5 MB, free: 6.809 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.01757, allocations: 174.5 kB / 267.7 MB, free: 6.637 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/0.01772, allocations: 142.5 kB / 267.8 MB, free: 6.492 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.01783, allocations: 370.6 kB / 268.2 MB, free: 6.121 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000166/0.01799, allocations: 149.4 kB / 268.3 MB, free: 5.961 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003456/0.01834, allocations: 0.5998 MB / 268.9 MB, free: 5.191 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004455/0.01878, allocations: 0.499 MB / 269.4 MB, free: 4.594 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.01879, allocations: 0 / 269.4 MB, free: 4.594 MB / 250.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005631/0.01935, allocations: 0.5424 MB / 270 MB, free: 4.023 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.115e-05/0.0194, allocations: 75.52 kB / 270.1 MB, free: 3.938 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.01941, allocations: 4 kB / 270.1 MB, free: 3.934 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.01944, allocations: 12 kB / 270.1 MB, free: 3.922 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004916/0.01993, allocations: 199.7 kB / 270.3 MB, free: 3.727 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.01994, allocations: 11.94 kB / 270.3 MB, free: 3.715 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003566/0.02029, allocations: 127.4 kB / 270.4 MB, free: 3.59 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.783e-05/0.02033, allocations: 31.94 kB / 270.4 MB, free: 3.559 MB / 250.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.0001742/0.02051, allocations: 157.6 kB / 270.6 MB, free: 3.395 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.852e-05/0.02057, allocations: 55.94 kB / 270.6 MB, free: 3.34 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.391e-05/0.02065, allocations: 57.52 kB / 270.7 MB, free: 3.285 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.02065, allocations: 8 kB / 270.7 MB, free: 3.277 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.02066, allocations: 8 kB / 270.7 MB, free: 3.27 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.02067, allocations: 3.984 kB / 270.7 MB, free: 3.266 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009216/0.02159, allocations: 0.6728 MB / 271.4 MB, free: 2.57 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.02159, allocations: 0 / 271.4 MB, free: 2.57 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003453/0.02194, allocations: 131.8 kB / 271.5 MB, free: 2.441 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.02194, allocations: 4 kB / 271.5 MB, free: 2.438 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.58e-05/0.02197, allocations: 11.94 kB / 271.5 MB, free: 2.426 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.02197, allocations: 7.938 kB / 271.5 MB, free: 2.418 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.02198, allocations: 0 / 271.5 MB, free: 2.418 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005645/0.02254, allocations: 478.7 kB / 272 MB, free: 1.934 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.062e-05/0.0226, allocations: 55.5 kB / 272.1 MB, free: 1.879 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.377e-05/0.02265, allocations: 12 kB / 272.1 MB, free: 1.867 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000223/0.02288, allocations: 67.91 kB / 272.1 MB, free: 1.801 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.02298, allocations: 52.41 kB / 272.2 MB, free: 1.75 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.289e-05/0.023, allocations: 12 kB / 272.2 MB, free: 1.738 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001444/0.02315, allocations: 176.4 kB / 272.4 MB, free: 1.566 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.02315, allocations: 0 / 272.4 MB, free: 1.566 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003764/0.02352, allocations: 171.8 kB / 272.5 MB, free: 1.398 MB / 250.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.0001129/0.02364, allocations: 96.36 kB / 272.6 MB, free: 1.297 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004898/0.02413, allocations: 0.4966 MB / 273.1 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.496e-05/0.02414, allocations: 9.062 kB / 273.1 MB, free: 0.75 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001882/0.02433, allocations: 156.7 kB / 273.3 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003119/0.02464, allocations: 109.9 kB / 273.4 MB, free: 500 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.02597, allocations: 0.9412 MB / 274.4 MB, free: 15.51 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.445e-05/0.02604, allocations: 121.9 kB / 274.5 MB, free: 15.38 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002284/0.02627, allocations: 72.59 kB / 274.5 MB, free: 15.3 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003265/0.0266, allocations: 183.3 kB / 274.7 MB, free: 15.12 MB / 266.7 MB Notification: Performance of SimCode: time 8.11e-07/0.0266, allocations: 4 kB / 274.7 MB, free: 15.12 MB / 266.7 MB Notification: Performance of Templates: time 0.01068/0.03728, allocations: 8.674 MB / 283.4 MB, free: 6.484 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.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: 2.7060058880597353]