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.001205/0.001205, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001141/0.001141, allocations: 143.1 kB / 24.97 MB, free: 8.324 MB / 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.9611/0.9611, allocations: 173.3 MB / 201.5 MB, free: 9.332 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.312e-06/1.312e-06, allocations: 0 / 268.1 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.969e-05/2.1e-05, allocations: 2.312 kB / 268.1 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004784/0.004805, allocations: 5.286 MB / 273.3 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002659/0.007464, allocations: 2.036 MB / 275.4 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004631/0.007927, allocations: 51.56 kB / 275.4 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003585/0.008286, allocations: 206.2 kB / 275.6 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000287/0.008573, allocations: 186.2 kB / 275.8 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000661/0.009234, allocations: 391 kB / 276.2 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007649/0.009999, allocations: 1.04 MB / 277.2 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004718/0.01047, allocations: 397.5 kB / 277.6 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000486/0.01096, allocations: 0.5263 MB / 278.2 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002748/0.01123, allocations: 275.1 kB / 278.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.53e-05/0.01132, allocations: 96 kB / 278.5 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001784/0.0115, allocations: 143.9 kB / 278.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.01163, allocations: 215.3 kB / 278.9 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003406/0.01197, allocations: 295.3 kB / 279.2 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006037/0.01257, allocations: 0.677 MB / 279.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.01257, allocations: 0 / 279.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.01257, allocations: 0 / 279.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.01258, allocations: 0 / 279.8 MB, free: 10.89 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.001022/0.01361, allocations: 1.073 MB / 280.9 MB, free: 9.785 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.01364, allocations: 8.922 kB / 280.9 MB, free: 9.777 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001577/0.0138, allocations: 160.4 kB / 281.1 MB, free: 9.621 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005172/0.01432, allocations: 490.3 kB / 281.5 MB, free: 9.113 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.115e-05/0.01436, allocations: 66.38 kB / 281.6 MB, free: 9.047 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.454e-05/0.01445, allocations: 88.33 kB / 281.7 MB, free: 8.961 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008/0.01525, allocations: 0.6536 MB / 282.4 MB, free: 8.258 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.971e-05/0.01527, allocations: 12.14 kB / 282.4 MB, free: 8.246 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.178e-05/0.01532, allocations: 32.38 kB / 282.4 MB, free: 8.215 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.01533, allocations: 23.94 kB / 282.4 MB, free: 8.191 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004621/0.0158, allocations: 287.7 kB / 282.7 MB, free: 7.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002077/0.01787, allocations: 2.954 MB / 285.7 MB, free: 4.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000379/0.01825, allocations: 174.7 kB / 285.8 MB, free: 4.656 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.39e-05/0.01834, allocations: 71.53 kB / 285.9 MB, free: 4.582 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.182e-05/0.01842, allocations: 15.98 kB / 285.9 MB, free: 4.566 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.01844, allocations: 41.39 kB / 286 MB, free: 4.516 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 3.386e-06/0.01844, allocations: 4 kB / 286 MB, free: 4.512 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001522/0.01996, allocations: 0.9736 MB / 286.9 MB, free: 3.469 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.681e-05/0.01999, allocations: 55.41 kB / 287 MB, free: 3.402 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002292/0.02022, allocations: 346.2 kB / 287.3 MB, free: 3.047 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.02024, allocations: 37.7 kB / 287.4 MB, free: 3.004 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.02041, allocations: 450.4 kB / 287.8 MB, free: 2.559 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.098e-05/0.02048, allocations: 142.8 kB / 287.9 MB, free: 2.418 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.221e-05/0.02056, allocations: 99.73 kB / 288 MB, free: 2.309 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.02068, allocations: 0.5196 MB / 288.6 MB, free: 1.777 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.791e-05/0.02077, allocations: 64.89 kB / 288.6 MB, free: 1.715 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.02094, allocations: 258.7 kB / 288.9 MB, free: 1.379 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002879/0.02122, allocations: 353.2 kB / 289.2 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.02123, allocations: 3.938 kB / 289.2 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003929/0.02162, allocations: 395.9 kB / 289.6 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.02163, allocations: 4 kB / 289.6 MB, free: 0.543 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.02164, allocations: 8.594 kB / 289.6 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001398/0.02178, allocations: 31.67 kB / 289.6 MB, free: 0.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002068/0.02199, allocations: 111.8 kB / 289.8 MB, free: 400 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.11/0.132, allocations: 0.8075 MB / 290.6 MB, free: 23.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002455/0.1323, allocations: 17.44 kB / 290.6 MB, free: 23.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.277e-05/0.1323, allocations: 26.41 kB / 290.6 MB, free: 23.88 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.0001738/0.1325, allocations: 180.9 kB / 290.8 MB, free: 23.72 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.882e-05/0.1325, allocations: 48.92 kB / 290.8 MB, free: 23.72 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004033/0.1329, allocations: 255.2 kB / 291.1 MB, free: 23.66 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.1329, allocations: 6.656 kB / 291.1 MB, free: 23.66 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1329, allocations: 0 / 291.1 MB, free: 23.66 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.1329, allocations: 3.734 kB / 291.1 MB, free: 23.66 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008871/0.1338, allocations: 0.8442 MB / 291.9 MB, free: 23.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.1338, allocations: 2.344 kB / 291.9 MB, free: 23.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002317/0.1341, allocations: 81.42 kB / 292 MB, free: 23.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001178/0.1342, allocations: 28.36 kB / 292 MB, free: 23.29 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.249e-05/0.1342, allocations: 13.12 kB / 292.1 MB, free: 23.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001682/0.1344, allocations: 0.8062 MB / 292.9 MB, free: 22.5 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.1344, allocations: 4.125 kB / 292.9 MB, free: 22.5 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004161/0.1348, allocations: 0.5101 MB / 293.4 MB, free: 22.23 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.603e-05/0.1348, allocations: 33.83 kB / 293.4 MB, free: 22.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.234e-05/0.1349, allocations: 10.81 kB / 293.4 MB, free: 22.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.761e-05/0.1349, allocations: 7.547 kB / 293.4 MB, free: 22.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.99e-05/0.135, allocations: 28.25 kB / 293.5 MB, free: 22.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.135, allocations: 16.12 kB / 293.5 MB, free: 22.22 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001336/0.1351, allocations: 227.8 kB / 293.7 MB, free: 22.1 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1351, allocations: 0 / 293.7 MB, free: 22.1 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003713/0.1355, allocations: 120.2 kB / 293.8 MB, free: 22.1 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.0001387/0.1356, allocations: 121.5 kB / 293.9 MB, free: 22.01 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003676/0.136, allocations: 238.9 kB / 294.2 MB, free: 21.99 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.136, allocations: 3.656 kB / 294.2 MB, free: 21.99 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.1362, allocations: 110.7 kB / 294.3 MB, free: 21.98 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003441/0.1365, allocations: 68.48 kB / 294.3 MB, free: 21.98 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.1381, allocations: 1.393 MB / 295.7 MB, free: 21.17 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001082/0.1383, allocations: 146.3 kB / 295.9 MB, free: 21.1 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001141/0.1384, allocations: 45.58 kB / 295.9 MB, free: 21.09 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.209e-05/0.1384, allocations: 31.92 kB / 296 MB, free: 21.09 MB / 266.7 MB Notification: Performance of SimCode: time 9.02e-07/0.1384, allocations: 1.219 kB / 296 MB, free: 21.09 MB / 266.7 MB Notification: Performance of Templates: time 0.007111/0.1455, allocations: 3.554 MB / 299.5 MB, free: 20.61 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.7813901929184794]