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.0009479/0.0009479, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001541/0.001541, allocations: 165.8 kB / 24.82 MB, free: 9.266 MB / 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 0.9292/0.9292, allocations: 177.1 MB / 205.3 MB, free: 5.473 MB / 186.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 9.62e-07/9.62e-07, allocations: 0 / 273.4 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.892e-05/1.988e-05, allocations: 2.312 kB / 273.4 MB, free: 1.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.01254/0.01256, allocations: 5.175 MB / 278.6 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003673/0.01623, allocations: 2.075 MB / 280.6 MB, free: 9.984 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005671/0.0168, allocations: 55.56 kB / 280.7 MB, free: 9.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004134/0.01721, allocations: 206.2 kB / 280.9 MB, free: 9.727 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003914/0.0176, allocations: 178.3 kB / 281.1 MB, free: 9.551 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008216/0.01843, allocations: 410.9 kB / 281.5 MB, free: 9.148 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001198/0.01962, allocations: 1.04 MB / 282.5 MB, free: 8.102 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006485/0.02027, allocations: 397.6 kB / 282.9 MB, free: 7.684 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006974/0.02097, allocations: 0.5379 MB / 283.4 MB, free: 7.145 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003679/0.02134, allocations: 275.2 kB / 283.7 MB, free: 6.875 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001358/0.02147, allocations: 92 kB / 283.8 MB, free: 6.785 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002622/0.02174, allocations: 151.9 kB / 283.9 MB, free: 6.637 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001581/0.02189, allocations: 203.3 kB / 284.1 MB, free: 6.438 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002569/0.02215, allocations: 295.3 kB / 284.4 MB, free: 6.148 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007621/0.02291, allocations: 0.6809 MB / 285.1 MB, free: 5.465 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.02292, allocations: 4 kB / 285.1 MB, free: 5.461 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.02292, allocations: 0 / 285.1 MB, free: 5.461 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.497e-05/0.02293, allocations: 0 / 285.1 MB, free: 5.461 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.001475/0.02441, allocations: 1.084 MB / 286.2 MB, free: 4.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.02445, allocations: 12.03 kB / 286.2 MB, free: 4.328 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002999/0.02475, allocations: 172.4 kB / 286.4 MB, free: 4.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006565/0.0254, allocations: 486.4 kB / 286.9 MB, free: 3.656 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.31e-05/0.02546, allocations: 62.38 kB / 286.9 MB, free: 3.594 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.02556, allocations: 88.31 kB / 287 MB, free: 3.508 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008386/0.0264, allocations: 0.6066 MB / 287.6 MB, free: 2.852 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.136e-05/0.02643, allocations: 12.16 kB / 287.6 MB, free: 2.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.939e-05/0.02648, allocations: 40.38 kB / 287.7 MB, free: 2.801 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.245e-05/0.0265, allocations: 27.92 kB / 287.7 MB, free: 2.773 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004046/0.02691, allocations: 229.7 kB / 287.9 MB, free: 2.547 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0982/0.1251, allocations: 2.87 MB / 290.8 MB, free: 24.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003522/0.1255, allocations: 156.3 kB / 290.9 MB, free: 24.64 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.343e-05/0.1255, allocations: 60.23 kB / 291 MB, free: 24.63 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.256e-05/0.1256, allocations: 20.67 kB / 291 MB, free: 24.63 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.623e-05/0.1256, allocations: 38.89 kB / 291.1 MB, free: 24.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.234e-06/0.1256, allocations: 0.75 kB / 291.1 MB, free: 24.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001211/0.1268, allocations: 0.8449 MB / 291.9 MB, free: 24.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.808e-05/0.1269, allocations: 56.94 kB / 292 MB, free: 24.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001844/0.127, allocations: 353.2 kB / 292.3 MB, free: 24.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.198e-05/0.127, allocations: 31.58 kB / 292.3 MB, free: 24.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.1272, allocations: 457.2 kB / 292.8 MB, free: 23.77 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.735e-05/0.1272, allocations: 148.1 kB / 292.9 MB, free: 23.7 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.805e-05/0.1273, allocations: 90.52 kB / 293 MB, free: 23.67 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.548e-05/0.1274, allocations: 0.5268 MB / 293.5 MB, free: 23.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.314e-05/0.1274, allocations: 44.58 kB / 293.6 MB, free: 23.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.1276, allocations: 251.1 kB / 293.8 MB, free: 22.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002086/0.1278, allocations: 338.4 kB / 294.2 MB, free: 22.69 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1278, allocations: 3.469 kB / 294.2 MB, free: 22.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003558/0.1281, allocations: 356.3 kB / 294.5 MB, free: 22.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.1281, allocations: 6.75 kB / 294.5 MB, free: 22.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.1282, allocations: 5.234 kB / 294.5 MB, free: 22.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001189/0.1283, allocations: 35.64 kB / 294.6 MB, free: 22.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/0.1285, allocations: 110.5 kB / 294.7 MB, free: 22.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001855/0.1287, allocations: 0.815 MB / 295.5 MB, free: 21.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.1288, allocations: 14.92 kB / 295.5 MB, free: 21.81 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.929e-05/0.1288, allocations: 17.55 kB / 295.5 MB, free: 21.81 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.0001262/0.1289, allocations: 188.7 kB / 295.7 MB, free: 21.65 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.037e-05/0.129, allocations: 51.62 kB / 295.7 MB, free: 21.63 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003008/0.1293, allocations: 246.2 kB / 296 MB, free: 21.57 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.1293, allocations: 6.438 kB / 296 MB, free: 21.57 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.1293, allocations: 0 / 296 MB, free: 21.57 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.1293, allocations: 3.422 kB / 296 MB, free: 21.57 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007479/0.13, allocations: 0.741 MB / 296.7 MB, free: 21.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.13, allocations: 2.453 kB / 296.7 MB, free: 21.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002054/0.1303, allocations: 79.17 kB / 296.8 MB, free: 21.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.541e-05/0.1303, allocations: 28.36 kB / 296.8 MB, free: 21.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.701e-05/0.1303, allocations: 8.953 kB / 296.8 MB, free: 21.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001376/0.1305, allocations: 0.8126 MB / 297.7 MB, free: 20.41 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1305, allocations: 2.188 kB / 297.7 MB, free: 20.41 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003381/0.1308, allocations: 485.1 kB / 298.1 MB, free: 20.12 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.033e-05/0.1309, allocations: 41.33 kB / 298.2 MB, free: 20.1 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.582e-05/0.1309, allocations: 11.97 kB / 298.2 MB, free: 20.1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.05e-05/0.131, allocations: 7.25 kB / 298.2 MB, free: 20.1 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/0.131, allocations: 28.58 kB / 298.2 MB, free: 20.1 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.131, allocations: 14.42 kB / 298.2 MB, free: 20.1 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.818e-05/0.1311, allocations: 222.4 kB / 298.5 MB, free: 19.97 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1311, allocations: 1.281 kB / 298.5 MB, free: 19.97 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003481/0.1315, allocations: 123.9 kB / 298.6 MB, free: 19.97 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.0001397/0.1316, allocations: 125.7 kB / 298.7 MB, free: 19.89 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002942/0.1319, allocations: 215.9 kB / 298.9 MB, free: 19.85 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1319, allocations: 0 / 298.9 MB, free: 19.85 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001203/0.132, allocations: 112.2 kB / 299 MB, free: 19.83 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003356/0.1324, allocations: 72 kB / 299.1 MB, free: 19.82 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.1338, allocations: 1.371 MB / 300.5 MB, free: 19 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001079/0.134, allocations: 151.5 kB / 300.6 MB, free: 18.92 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001212/0.1341, allocations: 49.97 kB / 300.7 MB, free: 18.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001268/0.1342, allocations: 137.9 kB / 300.8 MB, free: 18.84 MB / 266.7 MB Notification: Performance of SimCode: time 1.162e-06/0.1342, allocations: 0 / 300.8 MB, free: 18.84 MB / 266.7 MB Notification: Performance of Templates: time 0.00802/0.1422, allocations: 3.879 MB / 304.7 MB, free: 18.25 MB / 266.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6629061358980834]