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.001164/0.001164, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.0009496/0.0009496, allocations: 169.9 kB / 24.91 MB, free: 9.191 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.9848/0.9848, allocations: 177.1 MB / 205.3 MB, free: 5.48 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.382e-06/1.382e-06, allocations: 0 / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.117e-05/1.255e-05, allocations: 2.312 kB / 273.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004476/0.004488, allocations: 5.19 MB / 278.6 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002262/0.006751, allocations: 2.156 MB / 280.8 MB, free: 9.926 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003056/0.007056, allocations: 51.56 kB / 280.8 MB, free: 9.875 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003297/0.007386, allocations: 202.2 kB / 281 MB, free: 9.676 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002435/0.00763, allocations: 182.3 kB / 281.2 MB, free: 9.496 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005836/0.008213, allocations: 406.9 kB / 281.6 MB, free: 9.098 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006616/0.008875, allocations: 1.044 MB / 282.7 MB, free: 8.047 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005719/0.009447, allocations: 409.5 kB / 283.1 MB, free: 7.613 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004693/0.009916, allocations: 0.5341 MB / 283.6 MB, free: 7.078 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000266/0.01018, allocations: 279.1 kB / 283.9 MB, free: 6.805 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.949e-05/0.01026, allocations: 92 kB / 283.9 MB, free: 6.715 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001666/0.01043, allocations: 147.9 kB / 284.1 MB, free: 6.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.01056, allocations: 211.3 kB / 284.3 MB, free: 6.363 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001864/0.01075, allocations: 295.3 kB / 284.6 MB, free: 6.074 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005499/0.0113, allocations: 0.677 MB / 285.3 MB, free: 5.395 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.0113, allocations: 4 kB / 285.3 MB, free: 5.391 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.0113, allocations: 4 kB / 285.3 MB, free: 5.387 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.01131, allocations: 0 / 285.3 MB, free: 5.387 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.0008201/0.01213, allocations: 0.9593 MB / 286.2 MB, free: 4.402 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3e-05/0.01216, allocations: 8.031 kB / 286.2 MB, free: 4.395 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001842/0.01234, allocations: 136.8 kB / 286.4 MB, free: 4.262 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004124/0.01275, allocations: 385 kB / 286.7 MB, free: 3.859 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.509e-05/0.01279, allocations: 62.38 kB / 286.8 MB, free: 3.797 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.723e-05/0.01287, allocations: 92.31 kB / 286.9 MB, free: 3.707 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005333/0.0134, allocations: 0.6062 MB / 287.5 MB, free: 3.062 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/0.01342, allocations: 4.172 kB / 287.5 MB, free: 3.059 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.124e-05/0.01346, allocations: 40.38 kB / 287.5 MB, free: 3.02 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.01348, allocations: 23.94 kB / 287.6 MB, free: 2.996 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002821/0.01376, allocations: 216.6 kB / 287.8 MB, free: 2.781 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.01559, allocations: 2.159 MB / 289.9 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002699/0.01586, allocations: 147.2 kB / 290.1 MB, free: 380 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.05e-05/0.01591, allocations: 44.84 kB / 290.1 MB, free: 332 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.473e-05/0.01597, allocations: 19.98 kB / 290.2 MB, free: 312 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.01599, allocations: 38.5 kB / 290.2 MB, free: 264 kB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.174e-06/0.016, allocations: 0 / 290.2 MB, free: 264 kB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.1161/0.1321, allocations: 0.7954 MB / 291 MB, free: 26.4 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.103e-05/0.1321, allocations: 57.34 kB / 291 MB, free: 26.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/0.1323, allocations: 297.8 kB / 291.3 MB, free: 26.22 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.1323, allocations: 32.08 kB / 291.4 MB, free: 26.19 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.1325, allocations: 382.1 kB / 291.7 MB, free: 26.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.738e-05/0.1325, allocations: 144.7 kB / 291.9 MB, free: 25.95 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.667e-05/0.1326, allocations: 92.19 kB / 292 MB, free: 25.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.005e-05/0.1327, allocations: 354.1 kB / 292.3 MB, free: 25.62 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.519e-05/0.1328, allocations: 40.72 kB / 292.4 MB, free: 25.62 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/0.1329, allocations: 189.6 kB / 292.5 MB, free: 25.45 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002328/0.1331, allocations: 277.2 kB / 292.8 MB, free: 25.29 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.1331, allocations: 2.688 kB / 292.8 MB, free: 25.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003637/0.1335, allocations: 286.2 kB / 293.1 MB, free: 25.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.1335, allocations: 7.094 kB / 293.1 MB, free: 25.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.1335, allocations: 8.047 kB / 293.1 MB, free: 25.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001498/0.1337, allocations: 27.36 kB / 293.1 MB, free: 25.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002705/0.1339, allocations: 113.5 kB / 293.2 MB, free: 25.24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001863/0.1341, allocations: 0.5334 MB / 293.8 MB, free: 24.72 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.1343, allocations: 13.91 kB / 293.8 MB, free: 24.72 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.915e-05/0.1343, allocations: 21.47 kB / 293.8 MB, free: 24.72 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.0001356/0.1344, allocations: 146.2 kB / 294 MB, free: 24.61 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.561e-05/0.1345, allocations: 31.62 kB / 294 MB, free: 24.61 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002981/0.1348, allocations: 204.2 kB / 294.2 MB, free: 24.55 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.1348, allocations: 5.547 kB / 294.2 MB, free: 24.55 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.1348, allocations: 1.812 kB / 294.2 MB, free: 24.55 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.1348, allocations: 5.953 kB / 294.2 MB, free: 24.55 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007747/0.1356, allocations: 0.566 MB / 294.8 MB, free: 24.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.1356, allocations: 2.156 kB / 294.8 MB, free: 24.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000267/0.1358, allocations: 74.55 kB / 294.8 MB, free: 24.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-05/0.1359, allocations: 32.59 kB / 294.9 MB, free: 24.29 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.992e-05/0.1359, allocations: 9.844 kB / 294.9 MB, free: 24.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001413/0.1361, allocations: 0.5246 MB / 295.4 MB, free: 23.78 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1361, allocations: 3.75 kB / 295.4 MB, free: 23.78 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003486/0.1364, allocations: 376.8 kB / 295.8 MB, free: 23.59 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.745e-05/0.1365, allocations: 32.23 kB / 295.8 MB, free: 23.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.58e-05/0.1365, allocations: 12.86 kB / 295.8 MB, free: 23.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.1366, allocations: 10.8 kB / 295.8 MB, free: 23.57 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.675e-05/0.1367, allocations: 34.08 kB / 295.9 MB, free: 23.56 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.644e-05/0.1367, allocations: 7.312 kB / 295.9 MB, free: 23.56 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001055/0.1368, allocations: 114.9 kB / 296 MB, free: 23.54 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1368, allocations: 0.625 kB / 296 MB, free: 23.54 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004203/0.1372, allocations: 122 kB / 296.1 MB, free: 23.54 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.0001293/0.1373, allocations: 103 kB / 296.2 MB, free: 23.47 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003029/0.1376, allocations: 209.1 kB / 296.4 MB, free: 23.44 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/0.1377, allocations: 4.312 kB / 296.4 MB, free: 23.44 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.1378, allocations: 109 kB / 296.5 MB, free: 23.42 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003429/0.1381, allocations: 75.81 kB / 296.6 MB, free: 23.42 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001619/0.1397, allocations: 1.163 MB / 297.8 MB, free: 22.76 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001205/0.1399, allocations: 151.6 kB / 297.9 MB, free: 22.68 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001357/0.14, allocations: 49.09 kB / 298 MB, free: 22.67 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.1401, allocations: 119.2 kB / 298.1 MB, free: 22.62 MB / 266.7 MB Notification: Performance of SimCode: time 6.51e-07/0.1401, allocations: 4 kB / 298.1 MB, free: 22.61 MB / 266.7 MB Notification: Performance of Templates: time 0.008599/0.1487, allocations: 3.862 MB / 301.9 MB, free: 22.04 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.7448147600516677]