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.002185/0.002185, allocations: 95.61 kB / 20.96 MB, free: 3.461 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.00208/0.00208, allocations: 165.3 kB / 24.27 MB, free: 152 kB / 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 1.591/1.591, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] 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.633e-06/1.633e-06, allocations: 0 / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.878e-05/3.042e-05, allocations: 6.312 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.008485/0.008515, allocations: 4.139 MB / 276.5 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002604/0.01112, allocations: 1.187 MB / 277.7 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002873/0.01141, allocations: 11.94 kB / 277.7 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000295/0.0117, allocations: 110.9 kB / 277.8 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004041/0.01211, allocations: 194.1 kB / 278 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007158/0.01282, allocations: 339.5 kB / 278.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001299/0.01412, allocations: 1.112 MB / 279.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003717/0.01449, allocations: 191 kB / 279.6 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008367/0.01533, allocations: 0.6006 MB / 280.2 MB, free: 9.922 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005628/0.01589, allocations: 367 kB / 280.6 MB, free: 9.562 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001865/0.01608, allocations: 120 kB / 280.7 MB, free: 9.445 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001917/0.01627, allocations: 116 kB / 280.8 MB, free: 9.332 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000256/0.01653, allocations: 239.3 kB / 281 MB, free: 9.098 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004152/0.01694, allocations: 319.3 kB / 281.3 MB, free: 8.785 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001582/0.01852, allocations: 1.301 MB / 282.6 MB, free: 7.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.01853, allocations: 0 / 282.6 MB, free: 7.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.01853, allocations: 0 / 282.6 MB, free: 7.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.01854, allocations: 0 / 282.6 MB, free: 7.48 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.003331/0.02187, allocations: 1.282 MB / 283.9 MB, free: 6.145 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.02192, allocations: 12.02 kB / 283.9 MB, free: 6.133 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002953/0.02221, allocations: 136.4 kB / 284.1 MB, free: 6 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008129/0.02303, allocations: 434.1 kB / 284.5 MB, free: 5.547 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.091e-05/0.02309, allocations: 45.69 kB / 284.5 MB, free: 5.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/0.02321, allocations: 64.38 kB / 284.6 MB, free: 5.438 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002383/0.0256, allocations: 1.285 MB / 285.9 MB, free: 4 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.02562, allocations: 192 / 285.9 MB, free: 4 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.349e-05/0.0257, allocations: 28.38 kB / 285.9 MB, free: 3.973 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.314e-05/0.02572, allocations: 19.94 kB / 285.9 MB, free: 3.953 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002416/0.02814, allocations: 0.851 MB / 286.8 MB, free: 3.102 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1501/0.1782, allocations: 3.561 MB / 290.3 MB, free: 26.51 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001828/0.18, allocations: 0.6446 MB / 291 MB, free: 26.47 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009336/0.181, allocations: 382.2 kB / 291.4 MB, free: 26.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.704e-05/0.181, allocations: 15.47 kB / 291.4 MB, free: 26.46 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009521/0.182, allocations: 433 kB / 291.8 MB, free: 26.4 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.605e-06/0.182, allocations: 0 / 291.8 MB, free: 26.4 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.002545/0.1845, allocations: 0.961 MB / 292.8 MB, free: 26.23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.931e-05/0.1846, allocations: 376.7 kB / 293.1 MB, free: 25.79 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008002/0.1854, allocations: 0.699 MB / 293.8 MB, free: 25.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.856e-05/0.1855, allocations: 42.45 kB / 293.9 MB, free: 25.39 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002455/0.1857, allocations: 464.2 kB / 294.3 MB, free: 25.05 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.1858, allocations: 189.9 kB / 294.5 MB, free: 24.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002717/0.1861, allocations: 173.9 kB / 294.7 MB, free: 24.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.1863, allocations: 0.5884 MB / 295.3 MB, free: 24.3 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009163/0.1872, allocations: 402.9 kB / 295.6 MB, free: 24.14 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001149/0.1884, allocations: 1.111 MB / 296.8 MB, free: 23.1 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001721/0.1901, allocations: 0.993 MB / 297.8 MB, free: 22.49 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.445e-06/0.1901, allocations: 8.688 kB / 297.8 MB, free: 22.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002393/0.1925, allocations: 1.124 MB / 298.9 MB, free: 22 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.987e-05/0.1925, allocations: 67.69 kB / 299 MB, free: 21.94 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/0.1925, allocations: 10.06 kB / 299 MB, free: 21.94 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.154e-05/0.1926, allocations: 9.5 kB / 299 MB, free: 21.94 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008904/0.1935, allocations: 191.8 kB / 299.2 MB, free: 21.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.062e-05/0.1935, allocations: 15.05 kB / 299.2 MB, free: 21.92 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008071/0.1943, allocations: 129.4 kB / 299.3 MB, free: 21.89 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.06e-05/0.1944, allocations: 31.33 kB / 299.3 MB, free: 21.89 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.0003319/0.1947, allocations: 278.7 kB / 299.6 MB, free: 21.65 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001861/0.1949, allocations: 81.19 kB / 299.7 MB, free: 21.61 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001815/0.1951, allocations: 63.72 kB / 299.7 MB, free: 21.57 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.1951, allocations: 6.25 kB / 299.7 MB, free: 21.57 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/0.1951, allocations: 0 / 299.7 MB, free: 21.57 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.1951, allocations: 4.484 kB / 299.8 MB, free: 21.57 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002857/0.198, allocations: 1.538 MB / 301.3 MB, free: 20.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.198, allocations: 0 / 301.3 MB, free: 20.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006748/0.1986, allocations: 120 kB / 301.4 MB, free: 20.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.1986, allocations: 5.375 kB / 301.4 MB, free: 20.79 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.68e-05/0.1987, allocations: 15.22 kB / 301.4 MB, free: 20.78 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.1987, allocations: 2.25 kB / 301.4 MB, free: 20.78 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.1987, allocations: 1.375 kB / 301.4 MB, free: 20.78 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002509/0.2012, allocations: 1.224 MB / 302.7 MB, free: 20.25 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.2013, allocations: 64.19 kB / 302.7 MB, free: 20.2 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.2014, allocations: 12.06 kB / 302.7 MB, free: 20.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005506/0.202, allocations: 65.02 kB / 302.8 MB, free: 20.18 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.2021, allocations: 55.48 kB / 302.8 MB, free: 20.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.331e-05/0.2022, allocations: 16.16 kB / 302.9 MB, free: 20.17 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005167/0.2027, allocations: 442.3 kB / 303.3 MB, free: 19.94 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2027, allocations: 0.8125 kB / 303.3 MB, free: 19.94 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007578/0.2035, allocations: 191.2 kB / 303.5 MB, free: 19.9 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.0001646/0.2036, allocations: 113.3 kB / 303.6 MB, free: 19.8 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001931/0.2055, allocations: 0.9875 MB / 304.6 MB, free: 19.36 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.2055, allocations: 2.5 kB / 304.6 MB, free: 19.36 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007611/0.2063, allocations: 369.4 kB / 304.9 MB, free: 19.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005709/0.2069, allocations: 118.2 kB / 305.1 MB, free: 19.21 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001928/0.2088, allocations: 1.196 MB / 306.3 MB, free: 18.34 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001853/0.209, allocations: 284.2 kB / 306.5 MB, free: 18.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003349/0.2093, allocations: 82.34 kB / 306.6 MB, free: 18.05 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002012/0.2095, allocations: 60.2 kB / 306.7 MB, free: 17.99 MB / 266.7 MB Notification: Performance of SimCode: time 1.563e-06/0.2095, allocations: 0 / 306.7 MB, free: 17.99 MB / 266.7 MB Notification: Performance of Templates: time 0.01363/0.2232, allocations: 8.762 MB / 315.4 MB, free: 9.496 MB / 266.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.865544565953314]