Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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="ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs") translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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="ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001526/0.001526, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001057/0.001057, allocations: 112 kB / 296.7 MB, free: 6.48 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3685/0.3685, allocations: 44.83 MB / 392.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001267, allocations: 59.91 kB / 465.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.3176, allocations: 62.03 MB / 0.5151 GB, free: 37.83 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.005705/0.3233, allocations: 5.756 MB / 0.5208 GB, free: 33.71 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003517/0.3269, allocations: 2.3 MB / 0.523 GB, free: 32.05 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008656/0.3278, allocations: 33.88 kB / 0.523 GB, free: 32.04 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004372/0.3282, allocations: 180.6 kB / 0.5232 GB, free: 31.93 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000401/0.3287, allocations: 147.7 kB / 0.5234 GB, free: 31.82 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008876/0.3296, allocations: 396.1 kB / 0.5237 GB, free: 31.57 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007648/0.3303, allocations: 1.058 MB / 0.5248 GB, free: 31.04 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000612/0.331, allocations: 0.5475 MB / 0.5253 GB, free: 30.74 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003733/0.3313, allocations: 334 kB / 0.5256 GB, free: 30.58 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002792/0.3316, allocations: 362.9 kB / 0.526 GB, free: 30.39 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.078e-05/0.3317, allocations: 54 kB / 0.526 GB, free: 30.39 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002223/0.332, allocations: 114.2 kB / 0.5261 GB, free: 30.37 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.3321, allocations: 173.2 kB / 0.5263 GB, free: 30.26 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002679/0.3324, allocations: 433.9 kB / 0.5267 GB, free: 29.98 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007701/0.3331, allocations: 1.161 MB / 0.5278 GB, free: 29.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3331, allocations: 0 / 0.5278 GB, free: 29.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.3332, allocations: 3.938 kB / 0.5278 GB, free: 29.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.294e-05/0.3332, allocations: 0 / 0.5278 GB, free: 29.52 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.00145/0.3346, allocations: 1.137 MB / 0.529 GB, free: 28.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.3347, allocations: 8.312 kB / 0.529 GB, free: 28.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002492/0.3349, allocations: 111.7 kB / 0.5291 GB, free: 28.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006668/0.3356, allocations: 0.5596 MB / 0.5296 GB, free: 28.24 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.292e-05/0.3357, allocations: 74.59 kB / 0.5297 GB, free: 28.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.3358, allocations: 93.03 kB / 0.5298 GB, free: 28.17 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/0.3369, allocations: 0.8908 MB / 0.5306 GB, free: 27.69 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.367e-05/0.337, allocations: 13.69 kB / 0.5307 GB, free: 27.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.409e-05/0.337, allocations: 36 kB / 0.5307 GB, free: 27.65 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.785e-05/0.3371, allocations: 29.39 kB / 0.5307 GB, free: 27.65 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008383/0.3379, allocations: 0.524 MB / 0.5312 GB, free: 27.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002998/0.3409, allocations: 3.637 MB / 0.5348 GB, free: 24.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005372/0.3415, allocations: 229 kB / 0.535 GB, free: 24.63 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001679/0.3417, allocations: 103 kB / 0.5351 GB, free: 24.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002707/0.3419, allocations: 249.7 kB / 0.5353 GB, free: 24.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.893e-05/0.342, allocations: 37.56 kB / 0.5354 GB, free: 24.26 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 2.324e-06/0.342, allocations: 2.875 kB / 0.5354 GB, free: 24.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.002141/0.3441, allocations: 1.289 MB / 0.5366 GB, free: 23.38 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.303e-05/0.3442, allocations: 61.61 kB / 0.5367 GB, free: 23.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003662/0.3445, allocations: 403.6 kB / 0.5371 GB, free: 23.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.3446, allocations: 29.7 kB / 0.5371 GB, free: 23.08 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001954/0.3448, allocations: 468.4 kB / 0.5376 GB, free: 22.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.734e-05/0.3448, allocations: 136.7 kB / 0.5377 GB, free: 22.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.345, allocations: 96.36 kB / 0.5378 GB, free: 22.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.153e-05/0.3451, allocations: 362.2 kB / 0.5381 GB, free: 22.22 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/0.3453, allocations: 113.8 kB / 0.5382 GB, free: 22.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002873/0.3455, allocations: 306.2 kB / 0.5385 GB, free: 21.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005077/0.3461, allocations: 458.4 kB / 0.539 GB, free: 21.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3461, allocations: 2.625 kB / 0.539 GB, free: 21.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0006958/0.3468, allocations: 0.5114 MB / 0.5395 GB, free: 21.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.3468, allocations: 9.188 kB / 0.5395 GB, free: 21.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.3468, allocations: 7.875 kB / 0.5395 GB, free: 21.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001926/0.347, allocations: 39.58 kB / 0.5395 GB, free: 21.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003497/0.3474, allocations: 125.1 kB / 0.5396 GB, free: 21.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002777/0.3477, allocations: 0.5614 MB / 0.5402 GB, free: 20.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001824/0.3479, allocations: 16.56 kB / 0.5402 GB, free: 20.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.064e-05/0.3479, allocations: 38.69 kB / 0.5402 GB, free: 20.69 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * 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.0002606/0.3482, allocations: 232.9 kB / 0.5405 GB, free: 20.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.686e-05/0.3483, allocations: 50.56 kB / 0.5405 GB, free: 20.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005359/0.3488, allocations: 325.1 kB / 0.5408 GB, free: 20.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.3488, allocations: 2.812 kB / 0.5408 GB, free: 20.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3488, allocations: 0 / 0.5408 GB, free: 20.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.3488, allocations: 3.141 kB / 0.5408 GB, free: 20.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/0.3502, allocations: 1.055 MB / 0.5419 GB, free: 19.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.3502, allocations: 2.906 kB / 0.5419 GB, free: 19.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003326/0.3506, allocations: 78.53 kB / 0.5419 GB, free: 19.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001398/0.3507, allocations: 38.5 kB / 0.542 GB, free: 19.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.862e-05/0.3508, allocations: 13.31 kB / 0.542 GB, free: 19.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002309/0.351, allocations: 0.5454 MB / 0.5425 GB, free: 19.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.351, allocations: 5.047 kB / 0.5425 GB, free: 19.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004572/0.3556, allocations: 4.036 MB / 0.5465 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.286e-05/0.3557, allocations: 114.7 kB / 0.5466 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.069e-05/0.3558, allocations: 12.61 kB / 0.5466 GB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001567/0.3559, allocations: 8.406 kB / 0.5466 GB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.3561, allocations: 27.89 kB / 0.5466 GB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/0.3561, allocations: 9.922 kB / 0.5466 GB, free: 15.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004137/0.3565, allocations: 275.1 kB / 0.5469 GB, free: 15.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3565, allocations: 0 / 0.5469 GB, free: 15.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009776/0.3575, allocations: 164.7 kB / 0.547 GB, free: 15.59 MB / 378.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.y,inertia2b.w,torqueToAngle2b.y,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.000231/0.3578, allocations: 117 kB / 0.5472 GB, free: 15.49 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008799/0.3586, allocations: 332.2 kB / 0.5475 GB, free: 15.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3587, allocations: 0 / 0.5475 GB, free: 15.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003291/0.359, allocations: 141.2 kB / 0.5476 GB, free: 15.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006514/0.3597, allocations: 80.48 kB / 0.5477 GB, free: 15.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003494/0.3632, allocations: 2.378 MB / 0.55 GB, free: 13.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006233/0.3638, allocations: 0.9633 MB / 0.5509 GB, free: 12.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002745/0.3641, allocations: 67.16 kB / 0.551 GB, free: 12.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.3642, allocations: 46.22 kB / 0.5511 GB, free: 12.77 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.3642, allocations: 0 / 0.5511 GB, free: 12.77 MB / 378.7 MB Notification: Performance of Templates: time 0.01653/0.3807, allocations: 4.621 MB / 0.5556 GB, free: 11.93 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches