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.001268/0.001268, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001095/0.001095, allocations: 168.8 kB / 25.33 MB, free: 8.598 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.9317/0.9317, allocations: 158.6 MB / 187.2 MB, free: 2.922 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 2.164e-06/2.164e-06, allocations: 0 / 251 MB, free: 7.512 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.932e-05/3.148e-05, allocations: 2.312 kB / 251 MB, free: 7.508 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005239/0.00527, allocations: 3.977 MB / 255 MB, free: 3.504 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002402/0.007673, allocations: 1.103 MB / 256.1 MB, free: 2.395 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003794/0.008052, allocations: 11.94 kB / 256.1 MB, free: 2.383 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002654/0.008317, allocations: 91.03 kB / 256.2 MB, free: 2.293 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004363/0.008754, allocations: 186.3 kB / 256.4 MB, free: 2.109 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007579/0.009512, allocations: 283.6 kB / 256.7 MB, free: 1.832 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001093/0.0106, allocations: 0.9912 MB / 257.7 MB, free: 0.8359 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003012/0.01091, allocations: 183.1 kB / 257.9 MB, free: 0.6523 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004968/0.0114, allocations: 0.5616 MB / 258.4 MB, free: 92 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003442/0.01175, allocations: 343.1 kB / 258.8 MB, free: 15.75 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.01185, allocations: 116 kB / 258.9 MB, free: 15.64 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.364e-05/0.01194, allocations: 112 kB / 259 MB, free: 15.53 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.01207, allocations: 211.4 kB / 259.2 MB, free: 15.32 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002057/0.01227, allocations: 303.3 kB / 259.5 MB, free: 15.03 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005538/0.01283, allocations: 0.6815 MB / 260.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.01283, allocations: 0 / 260.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.01283, allocations: 0 / 260.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.01284, allocations: 0 / 260.2 MB, free: 14.34 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.001453/0.01429, allocations: 1.138 MB / 261.3 MB, free: 13.16 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.01434, allocations: 15.98 kB / 261.3 MB, free: 13.14 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001457/0.01449, allocations: 124.4 kB / 261.4 MB, free: 13.02 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004062/0.01489, allocations: 390.4 kB / 261.8 MB, free: 12.61 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.926e-05/0.01494, allocations: 45.69 kB / 261.9 MB, free: 12.57 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.136e-05/0.01502, allocations: 56.38 kB / 261.9 MB, free: 12.51 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009725/0.016, allocations: 0.9075 MB / 262.8 MB, free: 11.47 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.01601, allocations: 192 / 262.8 MB, free: 11.47 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.787e-05/0.01606, allocations: 35.88 kB / 262.9 MB, free: 11.43 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.553e-05/0.01607, allocations: 19.98 kB / 262.9 MB, free: 11.41 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005228/0.01659, allocations: 337.6 kB / 263.2 MB, free: 11.08 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002481/0.01908, allocations: 2.941 MB / 266.1 MB, free: 8.012 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007048/0.01978, allocations: 393.1 kB / 266.5 MB, free: 7.617 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003137/0.02009, allocations: 201 kB / 266.7 MB, free: 7.418 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.202e-05/0.02014, allocations: 12.48 kB / 266.7 MB, free: 7.406 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003488/0.02049, allocations: 263.4 kB / 267 MB, free: 7.133 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 2.325e-06/0.02049, allocations: 0 / 267 MB, free: 7.133 MB / 250.7 MB Notification: Performance of matching and sorting (n=50): time 0.0007636/0.02125, allocations: 0.4889 MB / 267.5 MB, free: 6.641 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.02136, allocations: 273.5 kB / 267.8 MB, free: 6.312 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003582/0.02171, allocations: 498.5 kB / 268.2 MB, free: 5.809 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.106e-05/0.02176, allocations: 37.7 kB / 268.3 MB, free: 5.766 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/0.02195, allocations: 399.3 kB / 268.7 MB, free: 5.367 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.625e-05/0.02204, allocations: 174.5 kB / 268.8 MB, free: 5.195 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001544/0.0222, allocations: 144.2 kB / 269 MB, free: 5.047 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.02234, allocations: 0.539 MB / 269.5 MB, free: 4.496 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000253/0.0226, allocations: 197.3 kB / 269.7 MB, free: 4.293 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004673/0.02306, allocations: 0.7421 MB / 270.5 MB, free: 3.336 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000562/0.02363, allocations: 0.6195 MB / 271.1 MB, free: 2.59 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.02363, allocations: 4 kB / 271.1 MB, free: 2.586 MB / 250.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008333/0.02446, allocations: 0.7333 MB / 271.8 MB, free: 1.82 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.732e-05/0.02451, allocations: 63.41 kB / 271.9 MB, free: 1.746 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.02452, allocations: 8.062 kB / 271.9 MB, free: 1.738 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.359e-05/0.02454, allocations: 12 kB / 271.9 MB, free: 1.727 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004541/0.025, allocations: 195.7 kB / 272.1 MB, free: 1.535 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.02501, allocations: 11.94 kB / 272.1 MB, free: 1.523 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003498/0.02536, allocations: 127.4 kB / 272.2 MB, free: 1.398 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.194e-05/0.0254, allocations: 28 kB / 272.2 MB, free: 1.371 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.0001655/0.02557, allocations: 212.3 kB / 272.5 MB, free: 1.152 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.412e-05/0.02564, allocations: 75.61 kB / 272.5 MB, free: 1.078 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.908e-05/0.02572, allocations: 65.5 kB / 272.6 MB, free: 1.012 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.02573, allocations: 8 kB / 272.6 MB, free: 1.004 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.02573, allocations: 3.938 kB / 272.6 MB, free: 1 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.02574, allocations: 7.984 kB / 272.6 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/0.02691, allocations: 1.03 MB / 273.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.02691, allocations: 0 / 273.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003145/0.02722, allocations: 123.8 kB / 273.8 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.02723, allocations: 0 / 273.8 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.866e-05/0.02726, allocations: 15.98 kB / 273.8 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.125e-06/0.02726, allocations: 4 kB / 273.8 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.02726, allocations: 3.938 kB / 273.8 MB, free: 15.78 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007967/0.02806, allocations: 0.6698 MB / 274.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.476e-05/0.02811, allocations: 63.53 kB / 274.5 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.342e-05/0.02817, allocations: 12 kB / 274.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002346/0.0284, allocations: 59.97 kB / 274.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.02851, allocations: 56.34 kB / 274.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.502e-05/0.02853, allocations: 16 kB / 274.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002188/0.02875, allocations: 314.8 kB / 275 MB, free: 14.59 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02875, allocations: 0 / 275 MB, free: 14.59 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000382/0.02913, allocations: 179.7 kB / 275.1 MB, free: 14.41 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.0001293/0.02926, allocations: 115.1 kB / 275.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006853/0.02995, allocations: 0.5856 MB / 275.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.02995, allocations: 0 / 275.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002593/0.03021, allocations: 203.7 kB / 276 MB, free: 13.46 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003649/0.03057, allocations: 109.9 kB / 276.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001395/0.03197, allocations: 0.9781 MB / 277.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.573e-05/0.03205, allocations: 125.9 kB / 277.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001818/0.03223, allocations: 72.55 kB / 277.3 MB, free: 12.13 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001503/0.03238, allocations: 52.5 kB / 277.4 MB, free: 12.08 MB / 266.7 MB Notification: Performance of SimCode: time 8.92e-07/0.03238, allocations: 7.938 kB / 277.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of Templates: time 0.009968/0.04235, allocations: 8.268 MB / 285.6 MB, free: 3.82 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: 3.1736900117248297]