Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001082/0.001082, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001533/0.002616, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007038/0.0007038, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009527/0.001657, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9198/0.9198, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08698/1.007, allocations: 53.66 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.789e-05/1.91e-05, allocations: 6.25 kB / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003535/0.003555, allocations: 4.169 MB / 248.7 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00187/0.005425, allocations: 1.253 MB / 250 MB, free: 8.859 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002897/0.005715, allocations: 11.94 kB / 250 MB, free: 8.848 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001629/0.005878, allocations: 114.8 kB / 250.1 MB, free: 8.734 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002958/0.006173, allocations: 190.2 kB / 250.3 MB, free: 8.547 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000496/0.006669, allocations: 339.5 kB / 250.6 MB, free: 8.215 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008747/0.007544, allocations: 1.1 MB / 251.7 MB, free: 7.109 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002555/0.0078, allocations: 197 kB / 251.9 MB, free: 6.91 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007097/0.008509, allocations: 0.6813 MB / 252.6 MB, free: 6.227 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003896/0.008899, allocations: 371 kB / 252.9 MB, free: 5.863 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001212/0.00902, allocations: 120 kB / 253.1 MB, free: 5.746 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.428e-05/0.009115, allocations: 120 kB / 253.2 MB, free: 5.629 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.975e-05/0.009214, allocations: 167.6 kB / 253.3 MB, free: 5.465 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001949/0.009409, allocations: 259.5 kB / 253.6 MB, free: 5.211 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005671/0.009976, allocations: 0.6349 MB / 254.2 MB, free: 4.574 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.465e-05/0.009991, allocations: 0 / 254.2 MB, free: 4.574 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.009992, allocations: 0 / 254.2 MB, free: 4.574 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.384e-05/0.01002, allocations: 4 kB / 254.2 MB, free: 4.57 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.001319/0.01134, allocations: 1.247 MB / 255.5 MB, free: 3.281 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.837e-05/0.01136, allocations: 12.03 kB / 255.5 MB, free: 3.27 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.01147, allocations: 100.8 kB / 255.6 MB, free: 3.172 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003239/0.0118, allocations: 307.5 kB / 255.9 MB, free: 2.844 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.258e-05/0.01183, allocations: 41.69 kB / 255.9 MB, free: 2.801 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.44e-05/0.01189, allocations: 68.38 kB / 256 MB, free: 2.734 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007476/0.01264, allocations: 0.9542 MB / 256.9 MB, free: 1.641 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.01266, allocations: 192 / 256.9 MB, free: 1.641 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.789e-05/0.01269, allocations: 28.38 kB / 257 MB, free: 1.613 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.01271, allocations: 23.94 kB / 257 MB, free: 1.59 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002999/0.01301, allocations: 230.8 kB / 257.2 MB, free: 1.367 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002001/0.01501, allocations: 2.284 MB / 259.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004663/0.01547, allocations: 312.3 kB / 259.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001962/0.01567, allocations: 150.3 kB / 260 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.85e-05/0.01571, allocations: 24.48 kB / 260 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002449/0.01595, allocations: 222.1 kB / 260.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.723e-06/0.01595, allocations: 0 / 260.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.0004406/0.0164, allocations: 333.9 kB / 260.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.234e-05/0.01644, allocations: 67.84 kB / 260.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002716/0.01671, allocations: 466.9 kB / 261 MB, free: 13.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.616e-05/0.01675, allocations: 37.7 kB / 261.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.01689, allocations: 325.3 kB / 261.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.455e-05/0.01698, allocations: 182.5 kB / 261.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000132/0.01711, allocations: 142.5 kB / 261.7 MB, free: 12.7 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.01721, allocations: 370.7 kB / 262.1 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.01736, allocations: 153.4 kB / 262.2 MB, free: 12.17 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000322/0.01768, allocations: 0.728 MB / 263 MB, free: 11.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000371/0.01805, allocations: 0.499 MB / 263.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.01806, allocations: 0 / 263.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0004884/0.01855, allocations: 0.5542 MB / 264 MB, free: 10.04 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.494e-05/0.0186, allocations: 70.98 kB / 264.1 MB, free: 9.965 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.01861, allocations: 11.94 kB / 264.1 MB, free: 9.953 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.01863, allocations: 8 kB / 264.1 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004899/0.01911, allocations: 219.7 kB / 264.3 MB, free: 9.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.01913, allocations: 19.92 kB / 264.3 MB, free: 9.711 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003213/0.01945, allocations: 127.6 kB / 264.5 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.242e-05/0.01948, allocations: 27.98 kB / 264.5 MB, free: 9.559 MB / 266.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.000138/0.01962, allocations: 161.6 kB / 264.6 MB, free: 9.391 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.282e-05/0.01968, allocations: 59.88 kB / 264.7 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.911e-05/0.01976, allocations: 73.94 kB / 264.8 MB, free: 9.254 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.01976, allocations: 4 kB / 264.8 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.01977, allocations: 0 / 264.8 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.01977, allocations: 7.984 kB / 264.8 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000785/0.02056, allocations: 0.6845 MB / 265.5 MB, free: 8.535 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.02056, allocations: 0 / 265.5 MB, free: 8.535 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003471/0.02091, allocations: 147.8 kB / 265.6 MB, free: 8.391 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.261e-05/0.02097, allocations: 55.5 kB / 265.7 MB, free: 8.336 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/0.02098, allocations: 4 kB / 265.7 MB, free: 8.332 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.329e-05/0.021, allocations: 8 kB / 265.7 MB, free: 8.324 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.021, allocations: 4 kB / 265.7 MB, free: 8.32 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.021, allocations: 0 / 265.7 MB, free: 8.32 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005078/0.02151, allocations: 486.7 kB / 266.2 MB, free: 7.832 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.185e-05/0.02156, allocations: 12 kB / 266.2 MB, free: 7.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003074/0.02187, allocations: 59.94 kB / 266.2 MB, free: 7.762 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.02198, allocations: 52.36 kB / 266.3 MB, free: 7.707 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.377e-05/0.02201, allocations: 11.98 kB / 266.3 MB, free: 7.695 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001513/0.02216, allocations: 192.4 kB / 266.5 MB, free: 7.508 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.02216, allocations: 4.031 kB / 266.5 MB, free: 7.504 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003408/0.02251, allocations: 187.7 kB / 266.7 MB, free: 7.32 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.0001484/0.02265, allocations: 100.3 kB / 266.8 MB, free: 7.211 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005462/0.0232, allocations: 0.5005 MB / 267.3 MB, free: 6.672 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.75e-05/0.02323, allocations: 16.44 kB / 267.3 MB, free: 6.656 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002015/0.02343, allocations: 148.7 kB / 267.4 MB, free: 6.508 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003918/0.02382, allocations: 162.9 kB / 267.6 MB, free: 6.348 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003639/0.02746, allocations: 1.029 MB / 268.6 MB, free: 5.289 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001092/0.02757, allocations: 137.9 kB / 268.7 MB, free: 5.133 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003833/0.02795, allocations: 76.66 kB / 268.8 MB, free: 5.059 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004567/0.02841, allocations: 201.2 kB / 269 MB, free: 4.859 MB / 266.7 MB Notification: Performance of SimCode: time 9.31e-07/0.02841, allocations: 4 kB / 269 MB, free: 4.855 MB / 266.7 MB Notification: Performance of Templates: time 0.01591/0.04431, allocations: 9.628 MB / 278.7 MB, free: 11.38 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.5617631040513515]