Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.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.0009445/0.0009445, allocations: 80.62 kB / 22.21 MB, free: 2.293 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.000977/0.000977, allocations: 147.7 kB / 25.59 MB, free: 8.109 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.9975/0.9975, allocations: 173.4 MB / 202.2 MB, free: 8.273 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.Modulation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|sine.y|sinAM.y|cosAM.y|sinFM.y|cosFM.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Modulation") translateModel(Modelica.Blocks.Examples.Modulation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|sine.y|sinAM.y|cosAM.y|sinFM.y|cosFM.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Modulation") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 269.2 MB, free: 9.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.729e-05/1.87e-05, allocations: 2.312 kB / 269.2 MB, free: 9.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.002192/0.00221, allocations: 1.94 MB / 271.1 MB, free: 7.875 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007639/0.002974, allocations: 0.5666 MB / 271.7 MB, free: 7.309 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.391e-05/0.003068, allocations: 7.938 kB / 271.7 MB, free: 7.301 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.0032, allocations: 40.19 kB / 271.7 MB, free: 7.262 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.507e-05/0.003265, allocations: 36.86 kB / 271.8 MB, free: 7.227 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002113/0.003476, allocations: 72.84 kB / 271.8 MB, free: 7.156 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001966/0.003673, allocations: 211 kB / 272 MB, free: 6.949 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.003817, allocations: 50.12 kB / 272.1 MB, free: 6.898 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001428/0.00396, allocations: 103.7 kB / 272.2 MB, free: 6.797 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.347e-05/0.004043, allocations: 55.81 kB / 272.2 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.65e-05/0.00407, allocations: 12.59 kB / 272.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.529e-05/0.004085, allocations: 16 kB / 272.3 MB, free: 6.715 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.035e-05/0.004115, allocations: 36.7 kB / 272.3 MB, free: 6.68 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.266e-05/0.004158, allocations: 47.84 kB / 272.4 MB, free: 6.633 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001386/0.004296, allocations: 128.1 kB / 272.5 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.943e-06/0.004298, allocations: 0 / 272.5 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.004299, allocations: 0.5312 kB / 272.5 MB, free: 6.508 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.004303, allocations: 0.8438 kB / 272.5 MB, free: 6.508 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.000458/0.004761, allocations: 0.5125 MB / 273 MB, free: 5.961 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.004801, allocations: 8.031 kB / 273 MB, free: 5.953 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.475e-05/0.004846, allocations: 32.8 kB / 273 MB, free: 5.922 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001689/0.005015, allocations: 189.7 kB / 273.2 MB, free: 5.711 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.005027, allocations: 12.36 kB / 273.2 MB, free: 5.699 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.487e-05/0.005052, allocations: 16.38 kB / 273.2 MB, free: 5.684 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001784/0.005231, allocations: 153.4 kB / 273.4 MB, free: 5.512 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.005239, allocations: 0 / 273.4 MB, free: 5.512 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.00525, allocations: 4 kB / 273.4 MB, free: 5.508 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.005257, allocations: 8.812 kB / 273.4 MB, free: 5.5 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.327e-05/0.00531, allocations: 39.91 kB / 273.4 MB, free: 5.461 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005453/0.005855, allocations: 0.6428 MB / 274.1 MB, free: 4.781 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001358/0.005991, allocations: 121.1 kB / 274.2 MB, free: 4.625 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.008e-05/0.006031, allocations: 47.23 kB / 274.3 MB, free: 4.566 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.394e-05/0.006045, allocations: 0 / 274.3 MB, free: 4.566 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.348e-05/0.006069, allocations: 41.33 kB / 274.3 MB, free: 4.516 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.323e-06/0.00607, allocations: 0 / 274.3 MB, free: 4.516 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002068/0.006277, allocations: 109.5 kB / 274.4 MB, free: 4.402 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.346e-05/0.00632, allocations: 110.8 kB / 274.5 MB, free: 4.27 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.006437, allocations: 241.9 kB / 274.7 MB, free: 4.016 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.006454, allocations: 29.7 kB / 274.8 MB, free: 3.98 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.564e-05/0.00653, allocations: 186.6 kB / 275 MB, free: 3.793 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.913e-05/0.006569, allocations: 55.52 kB / 275 MB, free: 3.738 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.991e-05/0.006609, allocations: 39.34 kB / 275.1 MB, free: 3.691 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.006738, allocations: 0.5001 MB / 275.6 MB, free: 3.18 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.477e-05/0.006763, allocations: 11.98 kB / 275.6 MB, free: 3.168 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.766e-05/0.006821, allocations: 87.84 kB / 275.6 MB, free: 3.051 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001131/0.006934, allocations: 125.3 kB / 275.8 MB, free: 2.895 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.006937, allocations: 4 kB / 275.8 MB, free: 2.891 MB / 250.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001483/0.007085, allocations: 133.3 kB / 275.9 MB, free: 2.754 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.007097, allocations: 4 kB / 275.9 MB, free: 2.75 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.007103, allocations: 4 kB / 275.9 MB, free: 2.746 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.776e-06/0.007112, allocations: 0 / 275.9 MB, free: 2.746 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.73e-05/0.007199, allocations: 36.17 kB / 275.9 MB, free: 2.711 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.007204, allocations: 3.938 kB / 276 MB, free: 2.707 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.634e-05/0.00725, allocations: 15.94 kB / 276 MB, free: 2.691 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.164e-05/0.007262, allocations: 8 kB / 276 MB, free: 2.684 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (17): * Single equations (assignments): 17 * 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 8.467e-05/0.007346, allocations: 164.5 kB / 276.1 MB, free: 2.512 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.836e-05/0.007395, allocations: 19.84 kB / 276.2 MB, free: 2.492 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001607/0.007555, allocations: 134.6 kB / 276.3 MB, free: 2.355 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.007559, allocations: 4 kB / 276.3 MB, free: 2.352 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.007562, allocations: 0 / 276.3 MB, free: 2.352 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.007566, allocations: 4 kB / 276.3 MB, free: 2.348 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000235/0.007801, allocations: 169.1 kB / 276.5 MB, free: 2.156 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.007802, allocations: 3.938 kB / 276.5 MB, free: 2.152 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.711e-05/0.007899, allocations: 31.97 kB / 276.5 MB, free: 2.121 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.007903, allocations: 4 kB / 276.5 MB, free: 2.117 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.007914, allocations: 0 / 276.5 MB, free: 2.117 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.007916, allocations: 3.938 kB / 276.5 MB, free: 2.113 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.007917, allocations: 4 kB / 276.5 MB, free: 2.109 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002755/0.008193, allocations: 0.5195 MB / 277 MB, free: 1.57 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.891e-05/0.008212, allocations: 27.8 kB / 277.1 MB, free: 1.543 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.008227, allocations: 7.938 kB / 277.1 MB, free: 1.535 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.688e-05/0.008314, allocations: 8 kB / 277.1 MB, free: 1.527 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.199e-05/0.008346, allocations: 11.97 kB / 277.1 MB, free: 1.516 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.093e-06/0.008353, allocations: 8.125 kB / 277.1 MB, free: 1.508 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.647e-05/0.00842, allocations: 172.3 kB / 277.3 MB, free: 1.34 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00842, allocations: 0 / 277.3 MB, free: 1.34 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002212/0.008641, allocations: 39.89 kB / 277.3 MB, free: 1.301 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (sine.phi,sinAM.phi,cosAM.phi,sinFM.phi,cosFM.phi) * 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 (17): * Single equations (assignments): 17 * 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.52e-05/0.008716, allocations: 103.2 kB / 277.4 MB, free: 1.191 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001238/0.00884, allocations: 83.72 kB / 277.5 MB, free: 1.105 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.008841, allocations: 0 / 277.5 MB, free: 1.105 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.709e-05/0.008888, allocations: 43.91 kB / 277.5 MB, free: 1.059 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002637/0.009152, allocations: 20.14 kB / 277.5 MB, free: 1.039 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007217/0.009874, allocations: 0.5185 MB / 278.1 MB, free: 488 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.418e-05/0.009928, allocations: 79.69 kB / 278.1 MB, free: 388 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.618e-05/0.009974, allocations: 21.47 kB / 278.2 MB, free: 364 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.687e-05/0.01004, allocations: 90.19 kB / 278.2 MB, free: 272 kB / 250.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01004, allocations: 0 / 278.2 MB, free: 272 kB / 250.7 MB Notification: Performance of Templates: time 0.002969/0.01301, allocations: 1.286 MB / 279.5 MB, free: 15 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Modulation -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Modulation/Modulation.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.770112657919526]