Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.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.0009541/0.0009541, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.0009792/0.0009792, allocations: 148.6 kB / 24.9 MB, free: 8.727 MB / 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.9313/0.9313, allocations: 173.4 MB / 201.5 MB, free: 8.75 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.Blocks.Examples.CompareSincExpSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|sinc.y|expSine1.y|expSine2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine") translateModel(Modelica.Blocks.Examples.CompareSincExpSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|sinc.y|expSine1.y|expSine2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 3.938 kB / 268.5 MB, free: 5.996 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.058e-05/2.192e-05, allocations: 6.109 kB / 268.5 MB, free: 5.992 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.CompareSincExpSine): time 0.008444/0.008466, allocations: 1.562 MB / 270.1 MB, free: 4.418 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006971/0.009163, allocations: 458.7 kB / 270.5 MB, free: 3.969 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.621e-05/0.009199, allocations: 0 / 270.5 MB, free: 3.969 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.954e-05/0.009229, allocations: 7.922 kB / 270.5 MB, free: 3.961 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.319e-05/0.009322, allocations: 15.8 kB / 270.5 MB, free: 3.945 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001564/0.009478, allocations: 31.89 kB / 270.6 MB, free: 3.914 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.704e-05/0.009575, allocations: 75.66 kB / 270.6 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.102e-05/0.009616, allocations: 0 / 270.6 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000156/0.009772, allocations: 43.89 kB / 270.7 MB, free: 3.797 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.08e-05/0.009833, allocations: 31.89 kB / 270.7 MB, free: 3.766 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.9e-05/0.009852, allocations: 4 kB / 270.7 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.04e-05/0.009862, allocations: 4 kB / 270.7 MB, free: 3.758 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.164e-05/0.009884, allocations: 11.94 kB / 270.7 MB, free: 3.746 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.51e-05/0.009909, allocations: 15.98 kB / 270.7 MB, free: 3.73 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.478e-05/0.01, allocations: 47.81 kB / 270.8 MB, free: 3.684 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.01001, allocations: 0 / 270.8 MB, free: 3.684 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.01001, allocations: 4 kB / 270.8 MB, free: 3.68 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.507e-06/0.01001, allocations: 0 / 270.8 MB, free: 3.68 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.004385/0.0144, allocations: 280.7 kB / 271.1 MB, free: 3.383 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.01444, allocations: 12.92 kB / 271.1 MB, free: 3.371 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.761e-05/0.01447, allocations: 4.875 kB / 271.1 MB, free: 3.367 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.766e-05/0.01457, allocations: 117.7 kB / 271.2 MB, free: 3.227 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.01458, allocations: 384 / 271.2 MB, free: 3.227 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.096e-05/0.01459, allocations: 8.375 kB / 271.2 MB, free: 3.219 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001581/0.01475, allocations: 89.03 kB / 271.3 MB, free: 3.113 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.01476, allocations: 4 kB / 271.3 MB, free: 3.109 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-06/0.01477, allocations: 0 / 271.3 MB, free: 3.109 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.01477, allocations: 4 kB / 271.3 MB, free: 3.105 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.607e-05/0.01481, allocations: 7.938 kB / 271.3 MB, free: 3.098 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001135/0.01492, allocations: 82.81 kB / 271.4 MB, free: 2.996 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.732e-05/0.015, allocations: 55.77 kB / 271.5 MB, free: 2.914 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.996e-05/0.01503, allocations: 22.69 kB / 271.5 MB, free: 2.883 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.379e-05/0.01504, allocations: 4 kB / 271.5 MB, free: 2.879 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.01507, allocations: 42.5 kB / 271.5 MB, free: 2.828 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 7.62e-07/0.01507, allocations: 0 / 271.5 MB, free: 2.828 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.00014/0.01521, allocations: 57.56 kB / 271.6 MB, free: 2.766 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.01526, allocations: 106.8 kB / 271.7 MB, free: 2.637 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.502e-05/0.01534, allocations: 126.7 kB / 271.8 MB, free: 2.5 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.01535, allocations: 33.64 kB / 271.8 MB, free: 2.461 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.025e-05/0.01538, allocations: 88.11 kB / 271.9 MB, free: 2.371 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.275e-05/0.01542, allocations: 15.84 kB / 271.9 MB, free: 2.355 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.892e-05/0.01546, allocations: 26.06 kB / 272 MB, free: 2.324 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.685e-05/0.01554, allocations: 318.8 kB / 272.3 MB, free: 2.004 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.434e-05/0.01557, allocations: 7.984 kB / 272.3 MB, free: 1.996 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.008e-05/0.0156, allocations: 26.56 kB / 272.3 MB, free: 1.961 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.635e-05/0.01565, allocations: 30.56 kB / 272.3 MB, free: 1.922 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.01565, allocations: 0 / 272.3 MB, free: 1.922 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.222e-05/0.01574, allocations: 53.56 kB / 272.4 MB, free: 1.863 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.01575, allocations: 11.05 kB / 272.4 MB, free: 1.855 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.01576, allocations: 4 kB / 272.4 MB, free: 1.852 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.01577, allocations: 3.938 kB / 272.4 MB, free: 1.848 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.821e-05/0.01587, allocations: 15.98 kB / 272.4 MB, free: 1.832 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.755e-06/0.01587, allocations: 0 / 272.4 MB, free: 1.832 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.095e-05/0.01591, allocations: 4 kB / 272.4 MB, free: 1.828 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-06/0.01592, allocations: 8.078 kB / 272.4 MB, free: 1.82 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 6.317e-05/0.01598, allocations: 109.8 kB / 272.5 MB, free: 1.703 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.606e-05/0.016, allocations: 7.984 kB / 272.6 MB, free: 1.695 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.732e-05/0.01603, allocations: 15.95 kB / 272.6 MB, free: 1.676 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.01603, allocations: 7.938 kB / 272.6 MB, free: 1.668 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.01603, allocations: 4 kB / 272.6 MB, free: 1.664 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.01604, allocations: 0 / 272.6 MB, free: 1.664 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.179e-05/0.01612, allocations: 73.88 kB / 272.7 MB, free: 1.574 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.01612, allocations: 4 kB / 272.7 MB, free: 1.57 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.229e-05/0.01617, allocations: 15.92 kB / 272.7 MB, free: 1.555 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.01617, allocations: 0 / 272.7 MB, free: 1.555 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.01618, allocations: 4 kB / 272.7 MB, free: 1.551 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.01619, allocations: 3.984 kB / 272.7 MB, free: 1.547 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.01619, allocations: 0 / 272.7 MB, free: 1.547 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001018/0.01629, allocations: 86.78 kB / 272.8 MB, free: 1.438 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.203e-05/0.0163, allocations: 11.94 kB / 272.8 MB, free: 1.426 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.215e-05/0.01631, allocations: 0 / 272.8 MB, free: 1.426 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.932e-05/0.01635, allocations: 8 kB / 272.8 MB, free: 1.418 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.694e-05/0.01639, allocations: 11.86 kB / 272.8 MB, free: 1.406 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.0164, allocations: 12 kB / 272.8 MB, free: 1.395 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.354e-05/0.01642, allocations: 28.14 kB / 272.8 MB, free: 1.367 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01642, allocations: 0 / 272.8 MB, free: 1.367 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000158/0.01658, allocations: 12 kB / 272.8 MB, free: 1.355 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 7.051e-05/0.01665, allocations: 76.42 kB / 272.9 MB, free: 1.273 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.186e-05/0.01673, allocations: 28.78 kB / 272.9 MB, free: 1.242 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.01674, allocations: 0 / 272.9 MB, free: 1.242 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.811e-05/0.01676, allocations: 16.84 kB / 273 MB, free: 1.223 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.572e-05/0.01685, allocations: 4 kB / 273 MB, free: 1.219 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004453/0.01729, allocations: 198.2 kB / 273.2 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.421e-05/0.01733, allocations: 59.34 kB / 273.2 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.285e-05/0.01736, allocations: 4 kB / 273.2 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.216e-05/0.01741, allocations: 51.36 kB / 273.3 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01741, allocations: 0 / 273.3 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of Templates: time 0.001888/0.0193, allocations: 0.5815 MB / 273.9 MB, free: 284 kB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/CompareSincExpSine/CompareSincExpSine.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.518555319868028]