Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.0009669/0.0009669, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0009655/0.0009655, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.9289/0.9289, allocations: 173.4 MB / 201.1 MB, free: 9.344 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.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 3.938 kB / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.657e-05/1.785e-05, allocations: 6.25 kB / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004764/0.004781, allocations: 5.313 MB / 273.3 MB, free: 1.121 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002776/0.007557, allocations: 2.04 MB / 275.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004405/0.007998, allocations: 51.56 kB / 275.4 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003512/0.008349, allocations: 206.2 kB / 275.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002903/0.008639, allocations: 194.2 kB / 275.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006489/0.009288, allocations: 391 kB / 276.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007584/0.01005, allocations: 1.04 MB / 277.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004805/0.01053, allocations: 401.5 kB / 277.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007844/0.01131, allocations: 0.5224 MB / 278.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000304/0.01162, allocations: 275.2 kB / 278.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.92e-05/0.0117, allocations: 96 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001844/0.01189, allocations: 143.9 kB / 278.6 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001258/0.01201, allocations: 211.3 kB / 278.8 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000203/0.01222, allocations: 291.3 kB / 279.1 MB, free: 11.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006807/0.0129, allocations: 0.6809 MB / 279.8 MB, free: 10.58 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.0129, allocations: 0 / 279.8 MB, free: 10.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.0129, allocations: 0 / 279.8 MB, free: 10.58 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.01292, allocations: 0 / 279.8 MB, free: 10.58 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.00107/0.01398, allocations: 1.073 MB / 280.9 MB, free: 9.469 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.01403, allocations: 8.922 kB / 280.9 MB, free: 9.461 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.01418, allocations: 160.4 kB / 281 MB, free: 9.305 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005178/0.0147, allocations: 486.3 kB / 281.5 MB, free: 8.801 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.784e-05/0.01474, allocations: 66.38 kB / 281.6 MB, free: 8.734 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.202e-05/0.01482, allocations: 88.33 kB / 281.7 MB, free: 8.648 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008177/0.01564, allocations: 0.6575 MB / 282.3 MB, free: 7.941 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.33e-05/0.01567, allocations: 8.141 kB / 282.3 MB, free: 7.934 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.61e-05/0.01572, allocations: 36.38 kB / 282.4 MB, free: 7.898 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.282e-05/0.01574, allocations: 23.94 kB / 282.4 MB, free: 7.875 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005123/0.01625, allocations: 287.7 kB / 282.7 MB, free: 7.594 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00249/0.01874, allocations: 2.958 MB / 285.6 MB, free: 4.52 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003406/0.01909, allocations: 171.1 kB / 285.8 MB, free: 4.34 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.97e-05/0.01916, allocations: 67.58 kB / 285.8 MB, free: 4.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.403e-05/0.01925, allocations: 19.98 kB / 285.9 MB, free: 4.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.968e-05/0.01927, allocations: 37.39 kB / 285.9 MB, free: 4.203 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.685e-06/0.01927, allocations: 4 kB / 285.9 MB, free: 4.199 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.00127/0.02054, allocations: 0.9736 MB / 286.9 MB, free: 3.156 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.526e-05/0.02057, allocations: 55.41 kB / 286.9 MB, free: 3.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002065/0.02077, allocations: 350.2 kB / 287.3 MB, free: 2.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.02079, allocations: 29.7 kB / 287.3 MB, free: 2.695 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/0.02095, allocations: 450.4 kB / 287.7 MB, free: 2.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.572e-05/0.02101, allocations: 142.8 kB / 287.9 MB, free: 2.109 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.933e-05/0.02109, allocations: 99.8 kB / 288 MB, free: 2 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.02121, allocations: 0.5196 MB / 288.5 MB, free: 1.469 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.495e-05/0.02129, allocations: 64.83 kB / 288.6 MB, free: 1.406 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001581/0.02145, allocations: 258.7 kB / 288.8 MB, free: 1.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002721/0.02172, allocations: 353.2 kB / 289.2 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.02173, allocations: 3.938 kB / 289.2 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000369/0.0221, allocations: 395.9 kB / 289.6 MB, free: 244 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.02211, allocations: 8 kB / 289.6 MB, free: 236 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.02212, allocations: 4.594 kB / 289.6 MB, free: 232 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001293/0.02225, allocations: 39.67 kB / 289.6 MB, free: 188 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002037/0.02245, allocations: 107.8 kB / 289.7 MB, free: 80 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1043/0.1267, allocations: 0.8074 MB / 290.5 MB, free: 29.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002408/0.1269, allocations: 18.36 kB / 290.5 MB, free: 29.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.221e-05/0.127, allocations: 19.56 kB / 290.6 MB, free: 29.07 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.0001735/0.1272, allocations: 186.6 kB / 290.7 MB, free: 28.91 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.181e-05/0.1272, allocations: 47.83 kB / 290.8 MB, free: 28.91 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004346/0.1276, allocations: 257.7 kB / 291 MB, free: 28.85 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.1276, allocations: 6.703 kB / 291 MB, free: 28.85 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1277, allocations: 2.125 kB / 291 MB, free: 28.85 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1277, allocations: 2.062 kB / 291 MB, free: 28.85 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008983/0.1286, allocations: 0.8486 MB / 291.9 MB, free: 28.49 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.1286, allocations: 2.031 kB / 291.9 MB, free: 28.49 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002446/0.1288, allocations: 75.23 kB / 292 MB, free: 28.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001349/0.1289, allocations: 32.12 kB / 292 MB, free: 28.48 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.578e-05/0.129, allocations: 11.19 kB / 292 MB, free: 28.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001962/0.1292, allocations: 0.8027 MB / 292.8 MB, free: 27.68 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1292, allocations: 1 kB / 292.8 MB, free: 27.68 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004753/0.1296, allocations: 0.5126 MB / 293.3 MB, free: 27.41 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.999e-05/0.1297, allocations: 37.5 kB / 293.4 MB, free: 27.41 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.642e-05/0.1297, allocations: 7.609 kB / 293.4 MB, free: 27.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.069e-05/0.1298, allocations: 12.05 kB / 293.4 MB, free: 27.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.812e-05/0.1299, allocations: 29.58 kB / 293.4 MB, free: 27.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-05/0.1299, allocations: 14.64 kB / 293.4 MB, free: 27.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001428/0.13, allocations: 226.6 kB / 293.7 MB, free: 27.29 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.13, allocations: 1.469 kB / 293.7 MB, free: 27.29 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003916/0.1304, allocations: 119.5 kB / 293.8 MB, free: 27.29 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.0001433/0.1305, allocations: 121.1 kB / 293.9 MB, free: 27.2 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004002/0.1309, allocations: 236.1 kB / 294.1 MB, free: 27.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.131, allocations: 0.5 kB / 294.1 MB, free: 27.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.1311, allocations: 116.5 kB / 294.2 MB, free: 27.17 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003545/0.1314, allocations: 71.44 kB / 294.3 MB, free: 27.17 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001761/0.1332, allocations: 1.386 MB / 295.7 MB, free: 26.37 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001123/0.1333, allocations: 147.1 kB / 295.8 MB, free: 26.3 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001163/0.1334, allocations: 50.2 kB / 295.9 MB, free: 26.29 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.574e-05/0.1335, allocations: 35.14 kB / 295.9 MB, free: 26.28 MB / 266.7 MB Notification: Performance of SimCode: time 1.002e-06/0.1335, allocations: 4 kB / 295.9 MB, free: 26.28 MB / 266.7 MB Notification: Performance of Templates: time 0.007453/0.1409, allocations: 3.721 MB / 299.6 MB, free: 25.79 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.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.757088872138411]