Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.0008983/0.0008983, allocations: 77.05 kB / 10 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001104/0.002002, allocations: 449.8 kB / 10.44 MB, free: 248 kB / 10.45 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.0006967/0.0006967, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009419/0.001639, allocations: 479.5 kB / 11.82 MB, free: 2.34 MB / 13.93 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.061/1.061, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08991/1.151, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.288e-05/2.426e-05, allocations: 2.312 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.00592/0.005944, allocations: 5.28 MB / 250 MB, free: 8.918 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003155/0.009099, allocations: 2.172 MB / 252.2 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000553/0.009652, allocations: 51.56 kB / 252.2 MB, free: 6.684 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003637/0.01002, allocations: 210.1 kB / 252.4 MB, free: 6.477 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003678/0.01038, allocations: 190.2 kB / 252.6 MB, free: 6.289 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007279/0.01111, allocations: 402.9 kB / 253 MB, free: 5.895 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008904/0.012, allocations: 1.036 MB / 254 MB, free: 4.855 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004894/0.01249, allocations: 401.6 kB / 254.4 MB, free: 4.438 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006697/0.01316, allocations: 0.5458 MB / 255 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003313/0.01349, allocations: 275.2 kB / 255.2 MB, free: 3.621 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.878e-05/0.01358, allocations: 92 kB / 255.3 MB, free: 3.531 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002527/0.01383, allocations: 159.8 kB / 255.5 MB, free: 3.375 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001226/0.01396, allocations: 171.5 kB / 255.6 MB, free: 3.207 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001906/0.01415, allocations: 247.5 kB / 255.9 MB, free: 2.965 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006281/0.01478, allocations: 0.642 MB / 256.5 MB, free: 2.32 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.267e-05/0.01479, allocations: 0 / 256.5 MB, free: 2.32 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.01479, allocations: 0 / 256.5 MB, free: 2.32 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.007e-05/0.01481, allocations: 0 / 256.5 MB, free: 2.32 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001147/0.01596, allocations: 1.127 MB / 257.7 MB, free: 1.164 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.01599, allocations: 12.03 kB / 257.7 MB, free: 1.152 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002522/0.01624, allocations: 217.9 kB / 257.9 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000495/0.01674, allocations: 389 kB / 258.3 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.429e-05/0.01677, allocations: 66.38 kB / 258.3 MB, free: 464 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.182e-05/0.01685, allocations: 84.38 kB / 258.4 MB, free: 380 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006518/0.0175, allocations: 0.5945 MB / 259 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.951e-05/0.01753, allocations: 12.08 kB / 259 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.647e-05/0.01757, allocations: 36.38 kB / 259.1 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.916e-05/0.01759, allocations: 23.94 kB / 259.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003301/0.01792, allocations: 216.6 kB / 259.3 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001836/0.01975, allocations: 2.178 MB / 261.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003104/0.02007, allocations: 147.2 kB / 261.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.866e-05/0.02011, allocations: 44.84 kB / 261.7 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.822e-05/0.02018, allocations: 23.97 kB / 261.7 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.0202, allocations: 38.56 kB / 261.7 MB, free: 12.9 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.753e-06/0.02021, allocations: 7.938 kB / 261.7 MB, free: 12.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001173/0.02138, allocations: 0.8152 MB / 262.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.343e-05/0.0214, allocations: 55.41 kB / 262.6 MB, free: 11.95 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.02157, allocations: 299.2 kB / 262.9 MB, free: 11.65 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/0.02158, allocations: 37.64 kB / 262.9 MB, free: 11.61 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.02171, allocations: 384.3 kB / 263.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.121e-05/0.02178, allocations: 138.8 kB / 263.4 MB, free: 11.09 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.253e-05/0.02185, allocations: 94.09 kB / 263.5 MB, free: 10.99 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.307e-05/0.02193, allocations: 354.7 kB / 263.9 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.355e-05/0.02197, allocations: 40.97 kB / 263.9 MB, free: 10.6 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.02208, allocations: 186 kB / 264.1 MB, free: 10.35 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001959/0.02227, allocations: 292.8 kB / 264.4 MB, free: 10 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.02228, allocations: 0 / 264.4 MB, free: 10 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00028/0.02256, allocations: 293.8 kB / 264.7 MB, free: 9.707 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.02257, allocations: 8 kB / 264.7 MB, free: 9.699 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.02258, allocations: 4 kB / 264.7 MB, free: 9.695 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001224/0.0227, allocations: 24.84 kB / 264.7 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002544/0.02296, allocations: 134.2 kB / 264.8 MB, free: 9.539 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002557/0.02321, allocations: 0.5483 MB / 265.4 MB, free: 8.965 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.45e-05/0.02331, allocations: 12 kB / 265.4 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.587e-05/0.02333, allocations: 24.25 kB / 265.4 MB, free: 8.93 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001145/0.02345, allocations: 140.5 kB / 265.6 MB, free: 8.781 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.942e-05/0.02349, allocations: 31.97 kB / 265.6 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002396/0.02373, allocations: 198.4 kB / 265.8 MB, free: 8.551 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.02373, allocations: 7.984 kB / 265.8 MB, free: 8.543 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-06/0.02373, allocations: 3.984 kB / 265.8 MB, free: 8.539 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.02374, allocations: 4 kB / 265.8 MB, free: 8.535 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005886/0.02433, allocations: 0.5687 MB / 266.4 MB, free: 7.926 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.02433, allocations: 8 kB / 266.4 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002261/0.02455, allocations: 91.88 kB / 266.5 MB, free: 7.828 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.811e-05/0.02458, allocations: 31.77 kB / 266.5 MB, free: 7.797 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.683e-05/0.02466, allocations: 28.78 kB / 266.5 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.02468, allocations: 8 kB / 266.5 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001761/0.02485, allocations: 0.5329 MB / 267.1 MB, free: 7.199 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.02485, allocations: 4.031 kB / 267.1 MB, free: 7.195 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002664/0.02512, allocations: 374 kB / 267.4 MB, free: 6.793 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.569e-05/0.02515, allocations: 12 kB / 267.4 MB, free: 6.781 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.074e-05/0.02522, allocations: 4 kB / 267.4 MB, free: 6.777 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.875e-05/0.02525, allocations: 27.89 kB / 267.5 MB, free: 6.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.02527, allocations: 15.92 kB / 267.5 MB, free: 6.734 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.243e-05/0.02534, allocations: 108.7 kB / 267.6 MB, free: 6.625 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02534, allocations: 0 / 267.6 MB, free: 6.625 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002809/0.02562, allocations: 127.9 kB / 267.7 MB, free: 6.5 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001489/0.02577, allocations: 103.3 kB / 267.8 MB, free: 6.395 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002556/0.02603, allocations: 206.5 kB / 268 MB, free: 6.191 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.211e-05/0.02604, allocations: 4.562 kB / 268 MB, free: 6.188 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001281/0.02617, allocations: 133.5 kB / 268.2 MB, free: 6.055 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004832/0.02665, allocations: 0.6604 MB / 268.8 MB, free: 5.27 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005239/0.03189, allocations: 1.373 MB / 270.2 MB, free: 3.844 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000113/0.032, allocations: 169.7 kB / 270.4 MB, free: 3.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001244/0.03213, allocations: 47.27 kB / 270.4 MB, free: 3.613 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/0.03226, allocations: 123.3 kB / 270.5 MB, free: 3.492 MB / 266.7 MB Notification: Performance of SimCode: time 1.763e-06/0.03226, allocations: 4 kB / 270.5 MB, free: 3.488 MB / 266.7 MB Notification: Performance of Templates: time 0.007984/0.04024, allocations: 3.938 MB / 274.5 MB, free: 15.64 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.728260423988104]