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.0009413/0.0009413, allocations: 75.77 kB / 22.45 MB, free: 2.098 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.0009216/0.0009216, allocations: 168 kB / 25.75 MB, free: 8.949 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.8759/0.8759, allocations: 158.6 MB / 187.5 MB, free: 2.934 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.342e-06/1.342e-06, allocations: 0 / 251.1 MB, free: 7.809 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.654e-05/1.788e-05, allocations: 2.312 kB / 251.1 MB, free: 7.805 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003869/0.003887, allocations: 3.961 MB / 255.1 MB, free: 3.816 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.005693, allocations: 1.115 MB / 256.2 MB, free: 2.695 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002768/0.005969, allocations: 8 kB / 256.2 MB, free: 2.688 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.006172, allocations: 94.97 kB / 256.3 MB, free: 2.594 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002863/0.006458, allocations: 182.3 kB / 256.5 MB, free: 2.414 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004917/0.00695, allocations: 287.6 kB / 256.7 MB, free: 2.133 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006529/0.007603, allocations: 0.9834 MB / 257.7 MB, free: 1.141 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002856/0.007888, allocations: 183.1 kB / 257.9 MB, free: 0.957 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004686/0.008357, allocations: 0.5654 MB / 258.5 MB, free: 400 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000324/0.008681, allocations: 343.1 kB / 258.8 MB, free: 56 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.008792, allocations: 116 kB / 258.9 MB, free: 15.94 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.044e-05/0.008882, allocations: 112 kB / 259 MB, free: 15.83 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001166/0.008999, allocations: 211.3 kB / 259.2 MB, free: 15.62 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002163/0.009215, allocations: 303.3 kB / 259.5 MB, free: 15.33 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000543/0.009758, allocations: 0.6816 MB / 260.2 MB, free: 14.64 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.009761, allocations: 0 / 260.2 MB, free: 14.64 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.009761, allocations: 0 / 260.2 MB, free: 14.64 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.009768, allocations: 0 / 260.2 MB, free: 14.64 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.001456/0.01122, allocations: 1.142 MB / 261.4 MB, free: 13.45 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.01126, allocations: 19.98 kB / 261.4 MB, free: 13.43 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001644/0.01143, allocations: 120.5 kB / 261.5 MB, free: 13.32 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004153/0.01184, allocations: 386.4 kB / 261.9 MB, free: 12.91 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.593e-05/0.01189, allocations: 41.69 kB / 261.9 MB, free: 12.87 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.538e-05/0.01196, allocations: 56.38 kB / 262 MB, free: 12.82 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/0.01297, allocations: 0.9114 MB / 262.9 MB, free: 11.77 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.01298, allocations: 192 / 262.9 MB, free: 11.77 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.03e-05/0.01303, allocations: 31.94 kB / 262.9 MB, free: 11.74 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.673e-05/0.01305, allocations: 12 kB / 262.9 MB, free: 11.73 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005461/0.0136, allocations: 341.6 kB / 263.3 MB, free: 11.39 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002425/0.01602, allocations: 2.948 MB / 266.2 MB, free: 8.312 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000696/0.01672, allocations: 389.1 kB / 266.6 MB, free: 7.922 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000325/0.01704, allocations: 205.1 kB / 266.8 MB, free: 7.719 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.619e-05/0.01708, allocations: 12.44 kB / 266.8 MB, free: 7.707 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003466/0.01742, allocations: 255.8 kB / 267 MB, free: 7.438 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 2.034e-06/0.01743, allocations: 0 / 267 MB, free: 7.438 MB / 250.7 MB Notification: Performance of matching and sorting (n=50): time 0.0007978/0.01822, allocations: 0.4889 MB / 267.5 MB, free: 6.945 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.01833, allocations: 277.5 kB / 267.8 MB, free: 6.613 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003637/0.01869, allocations: 498.5 kB / 268.3 MB, free: 6.109 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.419e-05/0.01873, allocations: 41.7 kB / 268.3 MB, free: 6.062 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001952/0.01893, allocations: 395.2 kB / 268.7 MB, free: 5.668 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.01903, allocations: 170.5 kB / 268.9 MB, free: 5.5 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001643/0.0192, allocations: 144.2 kB / 269 MB, free: 5.352 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.01936, allocations: 0.539 MB / 269.6 MB, free: 4.801 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000278/0.01964, allocations: 201.3 kB / 269.8 MB, free: 4.594 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004778/0.02012, allocations: 0.7421 MB / 270.5 MB, free: 3.637 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006213/0.02074, allocations: 0.6156 MB / 271.1 MB, free: 2.895 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.02074, allocations: 4 kB / 271.1 MB, free: 2.891 MB / 250.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008649/0.02161, allocations: 0.7369 MB / 271.9 MB, free: 2.121 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.064e-05/0.02165, allocations: 63.41 kB / 271.9 MB, free: 2.047 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.026e-06/0.02165, allocations: 4 kB / 271.9 MB, free: 2.043 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.02167, allocations: 12 kB / 271.9 MB, free: 2.031 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004698/0.02214, allocations: 196.1 kB / 272.1 MB, free: 1.84 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.02215, allocations: 12 kB / 272.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000359/0.02251, allocations: 123.4 kB / 272.3 MB, free: 1.707 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.01e-05/0.02255, allocations: 28 kB / 272.3 MB, free: 1.68 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.000166/0.02272, allocations: 216.3 kB / 272.5 MB, free: 1.457 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.085e-05/0.0228, allocations: 75.61 kB / 272.6 MB, free: 1.383 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.044e-05/0.02288, allocations: 65.52 kB / 272.6 MB, free: 1.316 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.02289, allocations: 11.94 kB / 272.6 MB, free: 1.305 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.02289, allocations: 0 / 272.6 MB, free: 1.305 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.0229, allocations: 3.984 kB / 272.7 MB, free: 1.301 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.02404, allocations: 1.03 MB / 273.7 MB, free: 240 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.02404, allocations: 4 kB / 273.7 MB, free: 236 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003245/0.02437, allocations: 115.8 kB / 273.8 MB, free: 120 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.02437, allocations: 0 / 273.8 MB, free: 120 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.748e-05/0.0244, allocations: 15.98 kB / 273.8 MB, free: 104 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.0244, allocations: 4 kB / 273.8 MB, free: 100 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.02441, allocations: 7.875 kB / 273.8 MB, free: 92 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008324/0.02524, allocations: 0.6737 MB / 274.5 MB, free: 15.4 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.762e-05/0.0253, allocations: 63.53 kB / 274.6 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.153e-05/0.02536, allocations: 12 kB / 274.6 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002538/0.02561, allocations: 55.94 kB / 274.6 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.02573, allocations: 56.34 kB / 274.7 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.661e-05/0.02576, allocations: 16 kB / 274.7 MB, free: 15.2 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002293/0.02598, allocations: 314.8 kB / 275 MB, free: 14.89 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02598, allocations: 4.031 kB / 275 MB, free: 14.89 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003809/0.02637, allocations: 175.7 kB / 275.2 MB, free: 14.72 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.0001252/0.02649, allocations: 115.2 kB / 275.3 MB, free: 14.6 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007191/0.02721, allocations: 0.5891 MB / 275.9 MB, free: 13.97 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.02721, allocations: 3.984 kB / 275.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002728/0.02749, allocations: 207.3 kB / 276.1 MB, free: 13.76 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003564/0.02784, allocations: 114.5 kB / 276.2 MB, free: 13.64 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.02922, allocations: 0.9743 MB / 277.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.98e-05/0.02929, allocations: 121.9 kB / 277.3 MB, free: 12.5 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002026/0.02949, allocations: 76.53 kB / 277.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001431/0.02963, allocations: 52.5 kB / 277.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of SimCode: time 9.42e-07/0.02963, allocations: 0 / 277.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of Templates: time 0.01044/0.04007, allocations: 8.265 MB / 285.7 MB, free: 4.133 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 -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.863338452996686]