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.001053/0.001053, allocations: 85.91 kB / 22.21 MB, free: 2.281 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.001191/0.001191, allocations: 155.2 kB / 25.61 MB, free: 8.578 MB / 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 0.9765/0.9765, allocations: 177 MB / 205.9 MB, free: 4.465 MB / 186.7 MB " [Timeout remaining time 179] 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 1.193e-06/1.193e-06, allocations: 0 / 274.1 MB, free: 4.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.084e-05/2.203e-05, allocations: 2.312 kB / 274.1 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003824/0.003846, allocations: 4.093 MB / 278.2 MB, free: 176 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001602/0.005448, allocations: 1.202 MB / 279.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002346/0.005682, allocations: 15.94 kB / 279.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000192/0.005874, allocations: 106.9 kB / 279.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002914/0.006166, allocations: 198.1 kB / 279.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004709/0.006637, allocations: 339.5 kB / 280.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007151/0.007352, allocations: 1.12 MB / 281.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002285/0.00758, allocations: 187 kB / 281.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005176/0.008098, allocations: 0.6006 MB / 282 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000357/0.008455, allocations: 371 kB / 282.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001787/0.008634, allocations: 116 kB / 282.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.866e-05/0.008732, allocations: 120 kB / 282.6 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.008851, allocations: 223.3 kB / 282.8 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002109/0.009062, allocations: 323.3 kB / 283.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005241/0.009586, allocations: 0.7127 MB / 283.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.00959, allocations: 4 kB / 283.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.009591, allocations: 7.938 kB / 283.8 MB, free: 10.56 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.044e-06/0.009598, allocations: 0 / 283.8 MB, free: 10.56 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.001483/0.01108, allocations: 1.224 MB / 285 MB, free: 9.281 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.01112, allocations: 12.02 kB / 285.1 MB, free: 9.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000144/0.01126, allocations: 140.4 kB / 285.2 MB, free: 9.133 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003711/0.01163, allocations: 422.1 kB / 285.6 MB, free: 8.691 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.178e-05/0.01166, allocations: 41.69 kB / 285.6 MB, free: 8.648 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.149e-05/0.01173, allocations: 64.38 kB / 285.7 MB, free: 8.586 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000817/0.01255, allocations: 0.9961 MB / 286.7 MB, free: 7.434 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.01257, allocations: 4.188 kB / 286.7 MB, free: 7.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.31e-05/0.01261, allocations: 24.38 kB / 286.7 MB, free: 7.406 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.01262, allocations: 19.94 kB / 286.7 MB, free: 7.387 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003561/0.01298, allocations: 286.6 kB / 287 MB, free: 7.105 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002639/0.01562, allocations: 3.061 MB / 290.1 MB, free: 3.914 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005347/0.01615, allocations: 357.1 kB / 290.4 MB, free: 3.555 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002198/0.01637, allocations: 168.4 kB / 290.6 MB, free: 3.387 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.398e-05/0.0164, allocations: 12.48 kB / 290.6 MB, free: 3.375 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002623/0.01667, allocations: 227.8 kB / 290.8 MB, free: 3.141 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.615e-06/0.01667, allocations: 0 / 290.8 MB, free: 3.141 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.000593/0.01726, allocations: 460.5 kB / 291.3 MB, free: 2.684 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.01737, allocations: 372.3 kB / 291.6 MB, free: 2.234 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003023/0.01767, allocations: 0.5098 MB / 292.2 MB, free: 1.707 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.09e-05/0.01771, allocations: 41.64 kB / 292.2 MB, free: 1.66 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001918/0.01791, allocations: 431 kB / 292.6 MB, free: 1.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.01801, allocations: 170.5 kB / 292.8 MB, free: 1.062 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001519/0.01816, allocations: 152.2 kB / 292.9 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.0183, allocations: 0.5468 MB / 293.5 MB, free: 356 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.01847, allocations: 165.3 kB / 293.6 MB, free: 176 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004205/0.01889, allocations: 0.8502 MB / 294.5 MB, free: 15.06 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006905/0.01958, allocations: 0.5765 MB / 295.1 MB, free: 14.36 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.01959, allocations: 4 kB / 295.1 MB, free: 14.36 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0006791/0.02027, allocations: 0.6743 MB / 295.7 MB, free: 13.65 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.489e-05/0.02031, allocations: 71.33 kB / 295.8 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.02032, allocations: 11.94 kB / 295.8 MB, free: 13.55 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.02034, allocations: 8 kB / 295.8 MB, free: 13.55 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000449/0.02078, allocations: 196.3 kB / 296 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.02079, allocations: 15.94 kB / 296 MB, free: 13.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003757/0.02117, allocations: 131.3 kB / 296.2 MB, free: 13.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.622e-05/0.02121, allocations: 24 kB / 296.2 MB, free: 13.19 MB / 282.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.0001884/0.02139, allocations: 220.3 kB / 296.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.475e-05/0.02148, allocations: 79.62 kB / 296.5 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.23e-05/0.02156, allocations: 73.88 kB / 296.6 MB, free: 12.81 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.02157, allocations: 4 kB / 296.6 MB, free: 12.81 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.02157, allocations: 0 / 296.6 MB, free: 12.81 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.02157, allocations: 0 / 296.6 MB, free: 12.81 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001026/0.0226, allocations: 0.9561 MB / 297.5 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.0226, allocations: 3.938 kB / 297.5 MB, free: 11.81 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003223/0.02293, allocations: 115.8 kB / 297.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.135e-06/0.02293, allocations: 4 kB / 297.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.441e-05/0.02295, allocations: 8 kB / 297.7 MB, free: 11.69 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.02295, allocations: 0 / 297.7 MB, free: 11.69 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.02296, allocations: 8 kB / 297.7 MB, free: 11.68 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006348/0.02359, allocations: 0.6111 MB / 298.3 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.92e-05/0.02366, allocations: 75.38 kB / 298.3 MB, free: 10.97 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.463e-05/0.02373, allocations: 16 kB / 298.4 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000246/0.02397, allocations: 59.94 kB / 298.4 MB, free: 10.9 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.118e-05/0.02405, allocations: 52.44 kB / 298.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-05/0.02408, allocations: 16 kB / 298.5 MB, free: 10.83 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001733/0.02425, allocations: 310.7 kB / 298.8 MB, free: 10.53 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.02425, allocations: 0 / 298.8 MB, free: 10.53 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004009/0.02465, allocations: 187.7 kB / 299 MB, free: 10.35 MB / 282.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.0001318/0.02478, allocations: 111.2 kB / 299.1 MB, free: 10.23 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005452/0.02533, allocations: 0.5375 MB / 299.6 MB, free: 9.648 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.02533, allocations: 0 / 299.6 MB, free: 9.648 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001969/0.02553, allocations: 172.9 kB / 299.8 MB, free: 9.48 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003906/0.02592, allocations: 122 kB / 299.9 MB, free: 9.359 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/0.02736, allocations: 1.038 MB / 300.9 MB, free: 8.285 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.804e-05/0.02744, allocations: 130 kB / 301.1 MB, free: 8.137 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002511/0.02769, allocations: 80.66 kB / 301.1 MB, free: 8.055 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003509/0.02804, allocations: 238.1 kB / 301.4 MB, free: 7.82 MB / 282.7 MB Notification: Performance of SimCode: time 1.243e-06/0.02804, allocations: 0 / 301.4 MB, free: 7.82 MB / 282.7 MB Notification: Performance of Templates: time 0.01218/0.04022, allocations: 9.63 MB / 311 MB, free: 14.34 MB / 298.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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] 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","",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.8657889240421355]