Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008951/0.0008951, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009967/0.0009967, allocations: 141.5 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9828/0.9828, allocations: 173.3 MB / 201.1 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.068e-06/4.068e-06, allocations: 4 kB / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.61e-05/2.017e-05, allocations: 2.312 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004161/0.004181, allocations: 4.148 MB / 272.1 MB, free: 2.254 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001567/0.005748, allocations: 1.171 MB / 273.3 MB, free: 1.074 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001993/0.005947, allocations: 15.94 kB / 273.3 MB, free: 1.059 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000198/0.006145, allocations: 106.8 kB / 273.4 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002401/0.006385, allocations: 198.2 kB / 273.6 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004753/0.00686, allocations: 335.5 kB / 274 MB, free: 440 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006905/0.007551, allocations: 1.12 MB / 275.1 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002535/0.007804, allocations: 191 kB / 275.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000435/0.008239, allocations: 0.6083 MB / 275.9 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003332/0.008573, allocations: 367 kB / 276.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001054/0.008678, allocations: 116 kB / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.008779, allocations: 120 kB / 276.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003116/0.009091, allocations: 227.3 kB / 276.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000212/0.009303, allocations: 315.4 kB / 277 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005518/0.009855, allocations: 0.7244 MB / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.009857, allocations: 0 / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.009858, allocations: 0 / 277.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.009866, allocations: 4 kB / 277.7 MB, free: 12.66 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.001425/0.01129, allocations: 1.209 MB / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.01133, allocations: 8.922 kB / 278.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001616/0.01149, allocations: 136.4 kB / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004439/0.01194, allocations: 430.1 kB / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.382e-05/0.01197, allocations: 45.69 kB / 279.5 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.349e-05/0.01205, allocations: 64.38 kB / 279.6 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.01308, allocations: 1.043 MB / 280.6 MB, free: 9.496 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.01309, allocations: 192 / 280.6 MB, free: 9.496 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.671e-05/0.01314, allocations: 28.38 kB / 280.7 MB, free: 9.469 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.01315, allocations: 15.94 kB / 280.7 MB, free: 9.453 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005504/0.0137, allocations: 361.6 kB / 281 MB, free: 9.098 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002636/0.01634, allocations: 3.054 MB / 284.1 MB, free: 5.914 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006859/0.01703, allocations: 399.6 kB / 284.5 MB, free: 5.512 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003088/0.01733, allocations: 197.1 kB / 284.7 MB, free: 5.316 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.826e-05/0.01738, allocations: 16.48 kB / 284.7 MB, free: 5.301 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003431/0.01773, allocations: 247.8 kB / 284.9 MB, free: 5.043 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.645e-06/0.01773, allocations: 0 / 284.9 MB, free: 5.043 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.0008062/0.01853, allocations: 0.5122 MB / 285.4 MB, free: 4.523 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/0.01865, allocations: 376.3 kB / 285.8 MB, free: 4.07 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000369/0.01902, allocations: 0.5141 MB / 286.3 MB, free: 3.539 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.909e-05/0.01906, allocations: 45.69 kB / 286.4 MB, free: 3.488 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001953/0.01926, allocations: 423 kB / 286.8 MB, free: 3.066 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.01936, allocations: 174.5 kB / 287 MB, free: 2.895 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/0.01953, allocations: 152.2 kB / 287.1 MB, free: 2.738 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.01967, allocations: 0.5352 MB / 287.6 MB, free: 2.191 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002591/0.01993, allocations: 197.3 kB / 287.8 MB, free: 1.984 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005097/0.02044, allocations: 0.8815 MB / 288.7 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000557/0.02099, allocations: 0.6156 MB / 289.3 MB, free: 104 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.021, allocations: 4 kB / 289.3 MB, free: 100 kB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0008166/0.02182, allocations: 0.7409 MB / 290.1 MB, free: 15.32 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.086e-05/0.02186, allocations: 67.34 kB / 290.1 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.02187, allocations: 11.98 kB / 290.2 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.945e-05/0.02189, allocations: 12 kB / 290.2 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00044/0.02233, allocations: 192 kB / 290.4 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.404e-05/0.02234, allocations: 19.92 kB / 290.4 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003341/0.02267, allocations: 127.3 kB / 290.5 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.108e-05/0.02272, allocations: 31.98 kB / 290.5 MB, free: 14.86 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.0001643/0.02288, allocations: 216.3 kB / 290.7 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.589e-05/0.02296, allocations: 75.62 kB / 290.8 MB, free: 14.56 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.639e-05/0.02303, allocations: 77.88 kB / 290.9 MB, free: 14.49 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.02304, allocations: 4 kB / 290.9 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.02304, allocations: 0 / 290.9 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.02305, allocations: 7.984 kB / 290.9 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.02415, allocations: 1.057 MB / 292 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.02415, allocations: 4 kB / 292 MB, free: 13.38 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003023/0.02446, allocations: 115.8 kB / 292.1 MB, free: 13.26 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.02446, allocations: 4 kB / 292.1 MB, free: 13.26 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.723e-05/0.02449, allocations: 12 kB / 292.1 MB, free: 13.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.02449, allocations: 0 / 292.1 MB, free: 13.25 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.02449, allocations: 4 kB / 292.1 MB, free: 13.24 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007632/0.02526, allocations: 0.6854 MB / 292.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.635e-05/0.02531, allocations: 75.38 kB / 292.9 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.984e-05/0.02536, allocations: 15.94 kB / 292.9 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.02559, allocations: 51.95 kB / 292.9 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.0257, allocations: 52.41 kB / 293 MB, free: 12.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.72e-05/0.02572, allocations: 19.98 kB / 293 MB, free: 12.32 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002134/0.02594, allocations: 334.8 kB / 293.3 MB, free: 12 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02594, allocations: 4.031 kB / 293.3 MB, free: 12 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003485/0.02628, allocations: 179.8 kB / 293.5 MB, free: 11.82 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.0001052/0.02639, allocations: 118 kB / 293.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006446/0.02703, allocations: 0.5968 MB / 294.2 MB, free: 11.05 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.02704, allocations: 0 / 294.2 MB, free: 11.05 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002429/0.02728, allocations: 191.5 kB / 294.4 MB, free: 10.86 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003707/0.02765, allocations: 123 kB / 294.5 MB, free: 10.75 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001405/0.02905, allocations: 1.051 MB / 295.6 MB, free: 9.66 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.507e-05/0.02913, allocations: 130 kB / 295.7 MB, free: 9.512 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001871/0.02932, allocations: 76.66 kB / 295.8 MB, free: 9.434 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000146/0.02946, allocations: 60.48 kB / 295.8 MB, free: 9.375 MB / 282.7 MB Notification: Performance of SimCode: time 5.41e-07/0.02946, allocations: 0 / 295.8 MB, free: 9.375 MB / 282.7 MB Notification: Performance of Templates: time 0.01014/0.0396, allocations: 8.718 MB / 304.5 MB, free: 0.7812 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 3.0579879810102284]