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.0009912/0.0009912, allocations: 75.75 kB / 21.69 MB, free: 2.852 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.001082/0.001082, allocations: 161.5 kB / 24.99 MB, free: 9.281 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.9584/0.9584, allocations: 177.1 MB / 205.3 MB, free: 5.621 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 1.272e-06/1.272e-06, allocations: 0 / 273 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.333e-05/2.461e-05, allocations: 2.312 kB / 273 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004996/0.00502, allocations: 5.301 MB / 278.3 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002845/0.007866, allocations: 2.095 MB / 280.4 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004625/0.008328, allocations: 51.56 kB / 280.5 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003617/0.00869, allocations: 218.1 kB / 280.7 MB, free: 10.15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000285/0.008975, allocations: 174.3 kB / 280.9 MB, free: 9.977 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007156/0.00969, allocations: 406.9 kB / 281.3 MB, free: 9.578 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007793/0.01047, allocations: 1.048 MB / 282.3 MB, free: 8.523 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00048/0.01095, allocations: 393.6 kB / 282.7 MB, free: 8.109 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006552/0.0116, allocations: 0.5302 MB / 283.2 MB, free: 7.578 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002651/0.01187, allocations: 271.2 kB / 283.5 MB, free: 7.312 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.845e-05/0.01195, allocations: 92 kB / 283.6 MB, free: 7.223 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001971/0.01215, allocations: 159.8 kB / 283.7 MB, free: 7.066 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.01228, allocations: 203.3 kB / 283.9 MB, free: 6.867 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002012/0.01248, allocations: 295.3 kB / 284.2 MB, free: 6.578 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006704/0.01315, allocations: 0.681 MB / 284.9 MB, free: 5.895 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.01315, allocations: 0 / 284.9 MB, free: 5.895 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.01316, allocations: 0 / 284.9 MB, free: 5.895 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.01316, allocations: 0 / 284.9 MB, free: 5.895 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.001079/0.01424, allocations: 1.084 MB / 286 MB, free: 4.773 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.01428, allocations: 8.031 kB / 286 MB, free: 4.766 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002428/0.01452, allocations: 164.4 kB / 286.2 MB, free: 4.605 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005099/0.01503, allocations: 490.4 kB / 286.6 MB, free: 4.098 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.059e-05/0.01507, allocations: 62.38 kB / 286.7 MB, free: 4.035 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.31e-05/0.01517, allocations: 92.27 kB / 286.8 MB, free: 3.945 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008277/0.01599, allocations: 0.6497 MB / 287.4 MB, free: 3.246 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.313e-05/0.01603, allocations: 16.12 kB / 287.5 MB, free: 3.23 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.594e-05/0.01607, allocations: 32.38 kB / 287.5 MB, free: 3.199 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.826e-05/0.01609, allocations: 23.94 kB / 287.5 MB, free: 3.176 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004853/0.01658, allocations: 287.6 kB / 287.8 MB, free: 2.891 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1177/0.1343, allocations: 2.963 MB / 290.8 MB, free: 27.73 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005038/0.1348, allocations: 167.4 kB / 290.9 MB, free: 27.69 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001397/0.1349, allocations: 65.53 kB / 291 MB, free: 27.68 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001277/0.135, allocations: 20.52 kB / 291 MB, free: 27.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.036e-05/0.1351, allocations: 42.3 kB / 291.1 MB, free: 27.63 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.915e-06/0.1351, allocations: 0 / 291.1 MB, free: 27.63 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0016/0.1367, allocations: 0.9797 MB / 292 MB, free: 27.28 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.309e-05/0.1367, allocations: 55.59 kB / 292.1 MB, free: 27.21 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002603/0.1369, allocations: 359.2 kB / 292.4 MB, free: 27.04 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.137, allocations: 31.14 kB / 292.5 MB, free: 27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.1371, allocations: 454.8 kB / 292.9 MB, free: 26.76 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.697e-05/0.1372, allocations: 138.9 kB / 293 MB, free: 26.69 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.17e-05/0.1373, allocations: 97.89 kB / 293.1 MB, free: 26.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.628e-05/0.1374, allocations: 0.5202 MB / 293.7 MB, free: 26.17 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.1375, allocations: 57.78 kB / 293.7 MB, free: 26.17 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.1376, allocations: 256.8 kB / 294 MB, free: 25.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002957/0.1379, allocations: 360.3 kB / 294.3 MB, free: 25.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.1379, allocations: 4.688 kB / 294.3 MB, free: 25.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004523/0.1384, allocations: 384.3 kB / 294.7 MB, free: 25.6 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.1384, allocations: 8.812 kB / 294.7 MB, free: 25.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.1384, allocations: 3.844 kB / 294.7 MB, free: 25.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001758/0.1386, allocations: 35.69 kB / 294.7 MB, free: 25.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002388/0.1388, allocations: 114.7 kB / 294.9 MB, free: 25.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002386/0.1391, allocations: 0.8157 MB / 295.7 MB, free: 24.78 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001257/0.1392, allocations: 14.72 kB / 295.7 MB, free: 24.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.11e-05/0.1392, allocations: 21.48 kB / 295.7 MB, free: 24.78 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.0001439/0.1394, allocations: 187.4 kB / 295.9 MB, free: 24.61 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.362e-05/0.1394, allocations: 48.45 kB / 295.9 MB, free: 24.59 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003647/0.1398, allocations: 259.5 kB / 296.2 MB, free: 24.52 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/0.1398, allocations: 7.266 kB / 296.2 MB, free: 24.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.309e-06/0.1398, allocations: 1.672 kB / 296.2 MB, free: 24.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.1398, allocations: 2.156 kB / 296.2 MB, free: 24.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008822/0.1407, allocations: 0.8465 MB / 297.1 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.1407, allocations: 5.156 kB / 297.1 MB, free: 24.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002387/0.1409, allocations: 76.69 kB / 297.1 MB, free: 24.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.303e-05/0.141, allocations: 36.64 kB / 297.2 MB, free: 24.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.309e-05/0.1411, allocations: 9.547 kB / 297.2 MB, free: 24.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001634/0.1412, allocations: 0.8028 MB / 298 MB, free: 23.31 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.1412, allocations: 5.25 kB / 298 MB, free: 23.31 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004383/0.1417, allocations: 0.5002 MB / 298.5 MB, free: 23.01 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.37e-05/0.1417, allocations: 31.39 kB / 298.5 MB, free: 22.99 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.315e-05/0.1417, allocations: 13.45 kB / 298.5 MB, free: 22.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.385e-05/0.1418, allocations: 11.27 kB / 298.5 MB, free: 22.98 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.557e-05/0.1419, allocations: 31.34 kB / 298.6 MB, free: 22.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.1419, allocations: 14.36 kB / 298.6 MB, free: 22.96 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000143/0.142, allocations: 232.9 kB / 298.8 MB, free: 22.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.142, allocations: 3.281 kB / 298.8 MB, free: 22.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000395/0.1424, allocations: 122.7 kB / 298.9 MB, free: 22.81 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.0001437/0.1426, allocations: 118.3 kB / 299.1 MB, free: 22.71 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003891/0.143, allocations: 239.8 kB / 299.3 MB, free: 22.65 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.143, allocations: 1.094 kB / 299.3 MB, free: 22.65 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001453/0.1431, allocations: 118.4 kB / 299.4 MB, free: 22.62 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003665/0.1435, allocations: 68.11 kB / 299.5 MB, free: 22.59 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00175/0.1452, allocations: 1.38 MB / 300.8 MB, free: 21.69 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001196/0.1453, allocations: 148.5 kB / 301 MB, free: 21.62 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001253/0.1455, allocations: 48.36 kB / 301 MB, free: 21.6 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.703e-05/0.1455, allocations: 33 kB / 301.1 MB, free: 21.59 MB / 266.7 MB Notification: Performance of SimCode: time 1.052e-06/0.1455, allocations: 0 / 301.1 MB, free: 21.59 MB / 266.7 MB Notification: Performance of Templates: time 0.007293/0.1528, allocations: 3.57 MB / 304.6 MB, free: 20.84 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.8677135459147394]