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.001397/0.001397, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001981/0.001981, allocations: 165.4 kB / 25.61 MB, free: 8.582 MB / 18.57 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.9144/0.9144, allocations: 177.1 MB / 206 MB, free: 4.473 MB / 186.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.533e-06/1.533e-06, allocations: 0 / 274.2 MB, free: 4.395 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.336e-05/2.49e-05, allocations: 3 kB / 274.2 MB, free: 4.391 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005887/0.005912, allocations: 4.087 MB / 278.3 MB, free: 308 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002502/0.008414, allocations: 1.2 MB / 279.5 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003952/0.008809, allocations: 15.94 kB / 279.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002927/0.009102, allocations: 104.8 kB / 279.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004516/0.009553, allocations: 190.7 kB / 279.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007535/0.01031, allocations: 348 kB / 280.1 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001218/0.01152, allocations: 1.116 MB / 281.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004001/0.01193, allocations: 183.1 kB / 281.4 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008816/0.01281, allocations: 0.6005 MB / 282 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005728/0.01338, allocations: 367 kB / 282.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001949/0.01357, allocations: 120 kB / 282.5 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001706/0.01374, allocations: 120 kB / 282.6 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001992/0.01394, allocations: 235.3 kB / 282.8 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000393/0.01434, allocations: 323.3 kB / 283.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009725/0.01531, allocations: 0.7166 MB / 283.9 MB, free: 10.7 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.01531, allocations: 0 / 283.9 MB, free: 10.7 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.01532, allocations: 0 / 283.9 MB, free: 10.7 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.558e-05/0.01533, allocations: 0 / 283.9 MB, free: 10.7 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.002291/0.01762, allocations: 1.232 MB / 285.1 MB, free: 9.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.01767, allocations: 8.031 kB / 285.1 MB, free: 9.402 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002571/0.01793, allocations: 132.4 kB / 285.2 MB, free: 9.273 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006738/0.0186, allocations: 430.1 kB / 285.7 MB, free: 8.824 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.893e-05/0.01866, allocations: 45.69 kB / 285.7 MB, free: 8.777 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.01879, allocations: 64.38 kB / 285.8 MB, free: 8.715 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.02025, allocations: 0.9961 MB / 286.8 MB, free: 7.562 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.139e-05/0.02027, allocations: 192 / 286.8 MB, free: 7.562 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.972e-05/0.02035, allocations: 28.36 kB / 286.8 MB, free: 7.535 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.407e-05/0.02038, allocations: 19.94 kB / 286.8 MB, free: 7.516 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006605/0.02104, allocations: 282.6 kB / 287.1 MB, free: 7.238 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004042/0.02508, allocations: 3.065 MB / 290.2 MB, free: 4.043 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008304/0.02591, allocations: 341.1 kB / 290.5 MB, free: 3.699 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003714/0.02628, allocations: 179.1 kB / 290.7 MB, free: 3.52 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.797e-05/0.02633, allocations: 12.48 kB / 290.7 MB, free: 3.508 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000442/0.02677, allocations: 231.8 kB / 290.9 MB, free: 3.266 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 3.036e-06/0.02678, allocations: 0 / 290.9 MB, free: 3.266 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.001017/0.02779, allocations: 448.5 kB / 291.3 MB, free: 2.824 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001715/0.02796, allocations: 376.3 kB / 291.7 MB, free: 2.371 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005358/0.0285, allocations: 0.5059 MB / 292.2 MB, free: 1.848 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.762e-05/0.02856, allocations: 41.7 kB / 292.3 MB, free: 1.801 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003106/0.02887, allocations: 435 kB / 292.7 MB, free: 1.367 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001639/0.02903, allocations: 174.5 kB / 292.9 MB, free: 1.195 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002965/0.02933, allocations: 160.1 kB / 293 MB, free: 1.031 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002161/0.02954, allocations: 0.539 MB / 293.6 MB, free: 492 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003218/0.02987, allocations: 165.3 kB / 293.7 MB, free: 312 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007194/0.03059, allocations: 0.8462 MB / 294.6 MB, free: 15.2 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005436/0.03113, allocations: 0.5765 MB / 295.1 MB, free: 14.5 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.03113, allocations: 0 / 295.1 MB, free: 14.5 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0007277/0.03186, allocations: 0.6786 MB / 295.8 MB, free: 13.79 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.48e-05/0.03191, allocations: 69.69 kB / 295.9 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.03192, allocations: 12.06 kB / 295.9 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.03193, allocations: 11.94 kB / 295.9 MB, free: 13.69 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004785/0.03241, allocations: 187.8 kB / 296.1 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.03242, allocations: 19.92 kB / 296.1 MB, free: 13.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003974/0.03282, allocations: 131.3 kB / 296.2 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.183e-05/0.03286, allocations: 35.97 kB / 296.3 MB, free: 13.32 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.0001836/0.03304, allocations: 212.3 kB / 296.5 MB, free: 13.1 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.726e-05/0.03313, allocations: 79.62 kB / 296.6 MB, free: 13.02 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.406e-05/0.03321, allocations: 69.88 kB / 296.6 MB, free: 12.96 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.03322, allocations: 4 kB / 296.6 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.03322, allocations: 4 kB / 296.6 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.03323, allocations: 7.984 kB / 296.6 MB, free: 12.94 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.03426, allocations: 0.9481 MB / 297.6 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.03426, allocations: 3.938 kB / 297.6 MB, free: 11.95 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003152/0.03458, allocations: 119.8 kB / 297.7 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.03458, allocations: 8 kB / 297.7 MB, free: 11.83 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.726e-05/0.03461, allocations: 15.98 kB / 297.7 MB, free: 11.81 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.03461, allocations: 0 / 297.7 MB, free: 11.81 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.03461, allocations: 0 / 297.7 MB, free: 11.81 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006572/0.03527, allocations: 0.6111 MB / 298.3 MB, free: 11.18 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.293e-05/0.03533, allocations: 71.38 kB / 298.4 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.521e-05/0.03539, allocations: 12 kB / 298.4 MB, free: 11.1 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002498/0.03564, allocations: 67.97 kB / 298.5 MB, free: 11.03 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.739e-05/0.03573, allocations: 52.41 kB / 298.5 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.299e-05/0.03575, allocations: 11.98 kB / 298.6 MB, free: 10.97 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001741/0.03592, allocations: 318.7 kB / 298.9 MB, free: 10.66 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03592, allocations: 0 / 298.9 MB, free: 10.66 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003943/0.03632, allocations: 179.7 kB / 299 MB, free: 10.48 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.0001179/0.03643, allocations: 115.2 kB / 299.2 MB, free: 10.36 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005454/0.03698, allocations: 0.5385 MB / 299.7 MB, free: 9.781 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.03698, allocations: 0 / 299.7 MB, free: 9.781 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001977/0.03718, allocations: 171.9 kB / 299.9 MB, free: 9.613 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003751/0.03756, allocations: 129.8 kB / 300 MB, free: 9.488 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.03889, allocations: 1.034 MB / 301 MB, free: 8.418 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.382e-05/0.03896, allocations: 126 kB / 301.1 MB, free: 8.273 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002376/0.0392, allocations: 80.66 kB / 301.2 MB, free: 8.191 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000353/0.03955, allocations: 238 kB / 301.5 MB, free: 7.957 MB / 282.7 MB Notification: Performance of SimCode: time 9.62e-07/0.03955, allocations: 0 / 301.5 MB, free: 7.957 MB / 282.7 MB Notification: Performance of Templates: time 0.01145/0.051, allocations: 9.638 MB / 311.1 MB, free: 14.46 MB / 298.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 -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.9091395372524858]