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.0007793/0.0007793, allocations: 91.62 kB / 22.19 MB, free: 2.352 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.0007739/0.0007739, allocations: 158.5 kB / 25.45 MB, free: 9.363 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.8262/0.8262, allocations: 158.6 MB / 187.2 MB, free: 3.059 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.293e-06/1.293e-06, allocations: 0 / 299.7 MB, free: 6.926 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.551e-05/1.68e-05, allocations: 10.28 kB / 299.7 MB, free: 6.914 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00295/0.002966, allocations: 3.63 MB / 303.3 MB, free: 3.254 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001492/0.004458, allocations: 1.099 MB / 304.4 MB, free: 2.148 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001826/0.004641, allocations: 8 kB / 304.4 MB, free: 2.141 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001674/0.004808, allocations: 98.97 kB / 304.5 MB, free: 2.043 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002333/0.005042, allocations: 182.3 kB / 304.7 MB, free: 1.863 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004481/0.00549, allocations: 291.6 kB / 305 MB, free: 1.578 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006566/0.006146, allocations: 0.9912 MB / 306 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002405/0.006387, allocations: 183 kB / 306.2 MB, free: 416 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004459/0.006833, allocations: 0.5499 MB / 306.7 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002935/0.007126, allocations: 331.1 kB / 307 MB, free: 15.53 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.499e-05/0.007221, allocations: 119.9 kB / 307.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.101e-05/0.007302, allocations: 112 kB / 307.3 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.007411, allocations: 219.4 kB / 307.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001878/0.007599, allocations: 299.4 kB / 307.8 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008002/0.008399, allocations: 1.212 MB / 309 MB, free: 13.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.008402, allocations: 3.938 kB / 309 MB, free: 13.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.008403, allocations: 4 kB / 309 MB, free: 13.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.309e-05/0.008416, allocations: 0 / 309 MB, free: 13.57 MB / 298.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.001617/0.01003, allocations: 1.132 MB / 310.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.01007, allocations: 11.98 kB / 310.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.01017, allocations: 84.47 kB / 310.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004146/0.01058, allocations: 387.5 kB / 310.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/0.01062, allocations: 41.69 kB / 310.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.513e-05/0.01068, allocations: 52.38 kB / 310.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.01193, allocations: 1.13 MB / 311.8 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.01194, allocations: 192 / 311.8 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.501e-05/0.01198, allocations: 27.94 kB / 311.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.01199, allocations: 16 kB / 311.9 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001475/0.01347, allocations: 0.9678 MB / 312.8 MB, free: 9.551 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002451/0.01592, allocations: 2.725 MB / 315.6 MB, free: 6.719 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.01711, allocations: 0.7382 MB / 316.3 MB, free: 5.973 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006103/0.01772, allocations: 418 kB / 316.7 MB, free: 5.559 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.087e-05/0.01776, allocations: 12.5 kB / 316.7 MB, free: 5.547 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006247/0.01838, allocations: 465.9 kB / 317.2 MB, free: 5.078 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 1.502e-06/0.01838, allocations: 0 / 317.2 MB, free: 5.078 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.001692/0.02007, allocations: 1.086 MB / 318.3 MB, free: 3.984 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.568e-05/0.02017, allocations: 265.7 kB / 318.5 MB, free: 3.664 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000405/0.02057, allocations: 0.5056 MB / 319 MB, free: 3.145 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.956e-05/0.02061, allocations: 37.7 kB / 319.1 MB, free: 3.102 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001629/0.02078, allocations: 352.4 kB / 319.4 MB, free: 2.754 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.723e-05/0.02087, allocations: 174.5 kB / 319.6 MB, free: 2.582 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/0.02102, allocations: 138.6 kB / 319.7 MB, free: 2.441 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.02112, allocations: 366.7 kB / 320.1 MB, free: 2.074 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006462/0.02177, allocations: 461.1 kB / 320.5 MB, free: 1.609 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000789/0.02256, allocations: 0.9043 MB / 321.4 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001218/0.02378, allocations: 0.9754 MB / 322.4 MB, free: 15.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.02378, allocations: 4 kB / 322.4 MB, free: 15.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001759/0.02554, allocations: 1.182 MB / 323.6 MB, free: 14.24 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.037e-05/0.02558, allocations: 67.39 kB / 323.7 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.02559, allocations: 4 kB / 323.7 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.02561, allocations: 12 kB / 323.7 MB, free: 14.15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004842/0.02609, allocations: 228 kB / 323.9 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.0261, allocations: 11.94 kB / 323.9 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004802/0.02658, allocations: 175.3 kB / 324.1 MB, free: 13.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.861e-05/0.02662, allocations: 28 kB / 324.1 MB, free: 13.71 MB / 314.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.0001893/0.02681, allocations: 217.5 kB / 324.3 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.441e-05/0.02687, allocations: 63.61 kB / 324.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.399e-05/0.02695, allocations: 69.52 kB / 324.4 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.02695, allocations: 4 kB / 324.5 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.453e-06/0.02696, allocations: 0 / 324.5 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.02696, allocations: 7.922 kB / 324.5 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001763/0.02873, allocations: 1.429 MB / 325.9 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.02873, allocations: 0 / 325.9 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003598/0.02909, allocations: 151.8 kB / 326 MB, free: 11.74 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.02909, allocations: 3.938 kB / 326 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.71e-05/0.02912, allocations: 12 kB / 326.1 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.02912, allocations: 4 kB / 326.1 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.02913, allocations: 3.938 kB / 326.1 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001744/0.03087, allocations: 1.294 MB / 327.4 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.531e-05/0.03093, allocations: 59.56 kB / 327.4 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.398e-05/0.03098, allocations: 15.98 kB / 327.4 MB, free: 10.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003327/0.03131, allocations: 99.92 kB / 327.5 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.71e-05/0.03141, allocations: 64.34 kB / 327.6 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.03143, allocations: 15.98 kB / 327.6 MB, free: 10.15 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000287/0.03172, allocations: 346.9 kB / 327.9 MB, free: 9.816 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03172, allocations: 0 / 327.9 MB, free: 9.816 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003586/0.03208, allocations: 171.7 kB / 328.1 MB, free: 9.648 MB / 314.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.0001154/0.03219, allocations: 115.1 kB / 328.2 MB, free: 9.527 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.03355, allocations: 1.02 MB / 329.2 MB, free: 8.469 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.03355, allocations: 0 / 329.2 MB, free: 8.469 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005597/0.03411, allocations: 399.4 kB / 329.6 MB, free: 8.082 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003418/0.03445, allocations: 85.59 kB / 329.7 MB, free: 8 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/0.03587, allocations: 1.158 MB / 330.9 MB, free: 6.805 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001505/0.03602, allocations: 263.3 kB / 331.1 MB, free: 6.523 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001874/0.03621, allocations: 60.5 kB / 331.2 MB, free: 6.465 MB / 314.7 MB Notification: Performance of SimCode: time 7.01e-07/0.03621, allocations: 0 / 331.2 MB, free: 6.465 MB / 314.7 MB Notification: Performance of Templates: time 0.008084/0.04429, allocations: 8.82 MB / 340 MB, free: 13.64 MB / 330.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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.826311218552291]