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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=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="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.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="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007481/0.0007481, allocations: 90.83 kB / 16.31 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008585/0.0008586, allocations: 182.4 kB / 17.21 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 223.2 MB / 241.2 MB, free: 352 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003567, allocations: 5 kB / 300.8 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1211, allocations: 50.42 MB / 351.2 MB, free: 4.031 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004962/0.1261, allocations: 4.662 MB / 355.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003177/0.1293, allocations: 1.928 MB / 357.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006387/0.13, allocations: 35.81 kB / 357.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003953/0.1304, allocations: 142.8 kB / 358 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003521/0.1307, allocations: 134.8 kB / 358.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006667/0.1314, allocations: 251.4 kB / 358.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007601/0.1322, allocations: 0.9035 MB / 359.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005536/0.1327, allocations: 421.5 kB / 359.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002386/0.133, allocations: 235 kB / 359.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003145/0.1333, allocations: 266.5 kB / 360.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.493e-05/0.1334, allocations: 32 kB / 360.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001757/0.1336, allocations: 79.97 kB / 360.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.1337, allocations: 119.5 kB / 360.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001318/0.1338, allocations: 177.2 kB / 360.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000708/0.1345, allocations: 0.8845 MB / 361.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1345, allocations: 0 / 361.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1345, allocations: 0 / 361.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.1346, allocations: 0 / 361.5 MB, free: 9.723 MB / 302.1 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.001169/0.1357, allocations: 0.8891 MB / 362.4 MB, free: 8.781 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.1358, allocations: 12.03 kB / 362.4 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.1359, allocations: 86.97 kB / 362.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005958/0.1365, allocations: 497.5 kB / 362.9 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.958e-05/0.1366, allocations: 62 kB / 363 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.1367, allocations: 83.91 kB / 363.1 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/0.138, allocations: 0.8005 MB / 363.9 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.102e-05/0.1381, allocations: 7.891 kB / 363.9 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.773e-05/0.1381, allocations: 36 kB / 363.9 MB, free: 7.137 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.831e-05/0.1382, allocations: 24 kB / 363.9 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009289/0.1391, allocations: 499.6 kB / 364.4 MB, free: 6.629 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003323/0.1424, allocations: 2.903 MB / 367.3 MB, free: 3.602 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005406/0.143, allocations: 230.5 kB / 367.6 MB, free: 3.367 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001922/0.1432, allocations: 104.8 kB / 367.7 MB, free: 3.262 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002556/0.1435, allocations: 255.2 kB / 367.9 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.1435, allocations: 38.56 kB / 368 MB, free: 2.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.324e-06/0.1435, allocations: 0 / 368 MB, free: 2.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002271/0.1458, allocations: 1.265 MB / 369.2 MB, free: 1.547 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.1458, allocations: 59.41 kB / 369.3 MB, free: 1.477 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003092/0.1462, allocations: 300.4 kB / 369.6 MB, free: 1.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.16e-05/0.1462, allocations: 29.7 kB / 369.6 MB, free: 1.145 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002303/0.1464, allocations: 406.5 kB / 370 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.055e-05/0.1465, allocations: 130.1 kB / 370.1 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.643e-05/0.1465, allocations: 8 kB / 370.1 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1467, allocations: 354.8 kB / 370.5 MB, free: 256 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000187/0.1469, allocations: 109.1 kB / 370.6 MB, free: 148 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.182/0.3289, allocations: 242.3 kB / 370.8 MB, free: 24.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004646/0.3294, allocations: 147.6 kB / 371 MB, free: 24.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.3295, allocations: 1.156 kB / 371 MB, free: 24.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009432/0.3304, allocations: 465.9 kB / 371.4 MB, free: 24.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.3304, allocations: 8.031 kB / 371.4 MB, free: 24.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.3305, allocations: 4.469 kB / 371.4 MB, free: 24.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002342/0.3307, allocations: 37.42 kB / 371.5 MB, free: 24.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003694/0.3311, allocations: 111.6 kB / 371.6 MB, free: 24.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002993/0.3314, allocations: 0.5587 MB / 372.1 MB, free: 23.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002105/0.3316, allocations: 15.61 kB / 372.2 MB, free: 23.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.05e-05/0.3317, allocations: 21.98 kB / 372.2 MB, free: 23.55 MB / 302.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000406/0.3321, allocations: 218.5 kB / 372.4 MB, free: 23.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.207e-05/0.3322, allocations: 38.03 kB / 372.4 MB, free: 23.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006643/0.3328, allocations: 327.5 kB / 372.7 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.3329, allocations: 4.156 kB / 372.7 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3329, allocations: 1.266 kB / 372.7 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.3329, allocations: 2.016 kB / 372.7 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001658/0.3346, allocations: 1.025 MB / 373.8 MB, free: 23.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.3346, allocations: 7 kB / 373.8 MB, free: 23.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003639/0.3349, allocations: 74.94 kB / 373.9 MB, free: 23.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001469/0.3351, allocations: 38.77 kB / 373.9 MB, free: 23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.001e-05/0.3351, allocations: 16.73 kB / 373.9 MB, free: 23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002627/0.3354, allocations: 0.5451 MB / 374.5 MB, free: 22.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/0.3354, allocations: 2.031 kB / 374.5 MB, free: 22.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007985/0.3362, allocations: 0.5572 MB / 375 MB, free: 22.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.512e-05/0.3363, allocations: 108 kB / 375.1 MB, free: 22.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.538e-05/0.3364, allocations: 14.19 kB / 375.1 MB, free: 22.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/0.3365, allocations: 11.22 kB / 375.1 MB, free: 22.19 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.335e-05/0.3366, allocations: 29.16 kB / 375.2 MB, free: 22.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.423e-05/0.3366, allocations: 14.59 kB / 375.2 MB, free: 22.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002044/0.3368, allocations: 205 kB / 375.4 MB, free: 22.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3368, allocations: 1.344 kB / 375.4 MB, free: 22.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005368/0.3374, allocations: 121.6 kB / 375.5 MB, free: 22.1 MB / 302.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001715/0.3375, allocations: 116.7 kB / 375.6 MB, free: 22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006233/0.3382, allocations: 299.5 kB / 375.9 MB, free: 21.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.3382, allocations: 2.719 kB / 375.9 MB, free: 21.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002548/0.3385, allocations: 148.7 kB / 376.1 MB, free: 21.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005008/0.339, allocations: 64.33 kB / 376.1 MB, free: 21.83 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002467/0.3414, allocations: 2.019 MB / 378.1 MB, free: 20.44 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004542/0.3419, allocations: 0.9205 MB / 379.1 MB, free: 19.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001794/0.3421, allocations: 47.58 kB / 379.1 MB, free: 19.72 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.006e-05/0.3422, allocations: 35 kB / 379.1 MB, free: 19.71 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3422, allocations: 0 / 379.1 MB, free: 19.71 MB / 302.1 MB Notification: Performance of Templates: time 0.009578/0.3518, allocations: 3.464 MB / 382.6 MB, free: 19.39 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches