Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002686/0.002692, allocations: 189 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.572/3.572, allocations: 205.4 MB / 222.5 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001744/0.001743, allocations: 94.88 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007026/0.0007027, allocations: 11.98 kB / 327 MB, free: 15.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.2187, allocations: 47.58 MB / 374.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.01392/0.2327, allocations: 4.383 MB / 378.9 MB, free: 11.02 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.008962/0.2417, allocations: 2.011 MB / 380.9 MB, free: 8.996 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001855/0.2436, allocations: 31.81 kB / 381 MB, free: 8.965 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001483/0.2452, allocations: 162.8 kB / 381.1 MB, free: 8.805 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002728/0.248, allocations: 295.1 kB / 381.4 MB, free: 8.516 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002968/0.2511, allocations: 355.3 kB / 381.8 MB, free: 8.168 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003364/0.2545, allocations: 0.6555 MB / 382.4 MB, free: 7.512 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001919/0.2565, allocations: 417.5 kB / 382.8 MB, free: 7.082 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001031/0.2576, allocations: 227 kB / 383 MB, free: 6.859 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001066/0.2588, allocations: 262.6 kB / 383.3 MB, free: 6.602 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002795/0.2591, allocations: 28 kB / 383.3 MB, free: 6.574 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00068/0.2598, allocations: 79.84 kB / 383.4 MB, free: 6.496 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003477/0.2602, allocations: 119.5 kB / 383.5 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005495/0.2608, allocations: 173.3 kB / 383.7 MB, free: 6.203 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002768/0.2636, allocations: 0.8845 MB / 384.6 MB, free: 5.316 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.2637, allocations: 0 / 384.6 MB, free: 5.316 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.608e-06/0.2637, allocations: 0 / 384.6 MB, free: 5.316 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.715e-05/0.2638, allocations: 0 / 384.6 MB, free: 5.316 MB / 282.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.003794/0.2676, allocations: 0.8929 MB / 385.5 MB, free: 4.371 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.862e-05/0.2677, allocations: 11.97 kB / 385.5 MB, free: 4.359 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005267/0.2683, allocations: 86.97 kB / 385.6 MB, free: 4.273 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001993/0.2703, allocations: 0.4897 MB / 386.1 MB, free: 3.742 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.2705, allocations: 62 kB / 386.1 MB, free: 3.684 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003933/0.2709, allocations: 91.98 kB / 386.2 MB, free: 3.594 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004399/0.2754, allocations: 0.7927 MB / 387 MB, free: 2.762 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000108/0.2756, allocations: 11.84 kB / 387 MB, free: 2.75 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001725/0.2758, allocations: 36 kB / 387 MB, free: 2.715 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.004e-05/0.2758, allocations: 24 kB / 387.1 MB, free: 2.691 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003288/0.2791, allocations: 499.6 kB / 387.6 MB, free: 2.207 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4084/0.6877, allocations: 2.892 MB / 390.4 MB, free: 18.99 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00157/0.6893, allocations: 217.2 kB / 390.7 MB, free: 18.96 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004365/0.6898, allocations: 249 kB / 390.9 MB, free: 18.68 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.502e-05/0.6899, allocations: 38.56 kB / 390.9 MB, free: 18.64 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 5.26e-06/0.69, allocations: 0.7812 kB / 390.9 MB, free: 18.64 MB / 282.7 MB Notification: Performance of matching and sorting (n=35): time 0.007044/0.697, allocations: 1.271 MB / 392.2 MB, free: 18.09 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.524e-05/0.6971, allocations: 59.31 kB / 392.3 MB, free: 18.03 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000805/0.698, allocations: 301.2 kB / 392.6 MB, free: 17.92 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.665e-05/0.6981, allocations: 35.86 kB / 392.6 MB, free: 17.89 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005054/0.6987, allocations: 442.5 kB / 393 MB, free: 17.58 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000281/0.699, allocations: 138.9 kB / 393.2 MB, free: 17.5 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.287e-05/0.699, allocations: 8.25 kB / 393.2 MB, free: 17.5 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.6992, allocations: 334.4 kB / 393.5 MB, free: 17.18 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006284/0.6999, allocations: 105.3 kB / 393.6 MB, free: 17.18 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000738/0.7006, allocations: 252.5 kB / 393.9 MB, free: 17.02 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007712/0.7015, allocations: 149.8 kB / 394 MB, free: 17.01 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.097e-05/0.7015, allocations: 1.031 kB / 394 MB, free: 17.01 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002145/0.7037, allocations: 445.9 kB / 394.4 MB, free: 16.83 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.163e-05/0.7038, allocations: 7.172 kB / 394.4 MB, free: 16.83 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.386e-05/0.7039, allocations: 11.73 kB / 394.5 MB, free: 16.83 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004438/0.7043, allocations: 42.5 kB / 394.5 MB, free: 16.82 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.7055, allocations: 112.2 kB / 394.6 MB, free: 16.8 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007612/0.7063, allocations: 0.5508 MB / 395.2 MB, free: 16.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006653/0.7071, allocations: 19.39 kB / 395.2 MB, free: 16.26 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.7072, allocations: 20.78 kB / 395.2 MB, free: 16.26 MB / 282.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 (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.0007956/0.708, allocations: 214.4 kB / 395.4 MB, free: 16.08 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001881/0.7082, allocations: 45.98 kB / 395.4 MB, free: 16.05 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001699/0.7099, allocations: 330.6 kB / 395.8 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/0.71, allocations: 4.125 kB / 395.8 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/0.7101, allocations: 0 / 395.8 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.538e-05/0.7101, allocations: 1.922 kB / 395.8 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00414/0.7143, allocations: 1.023 MB / 396.8 MB, free: 15.28 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-05/0.7143, allocations: 5.781 kB / 396.8 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001265/0.7156, allocations: 81.84 kB / 396.9 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004059/0.7161, allocations: 30.31 kB / 396.9 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.405e-05/0.7162, allocations: 13.97 kB / 396.9 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005927/0.7168, allocations: 0.5456 MB / 397.5 MB, free: 14.71 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.019e-05/0.7169, allocations: 5.875 kB / 397.5 MB, free: 14.71 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00229/0.7192, allocations: 0.6085 MB / 398.1 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002579/0.7195, allocations: 112.2 kB / 398.2 MB, free: 14.16 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.7197, allocations: 8.375 kB / 398.2 MB, free: 14.15 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004509/0.7202, allocations: 9.719 kB / 398.2 MB, free: 14.15 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.7204, allocations: 28.17 kB / 398.2 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.874e-05/0.7204, allocations: 13.95 kB / 398.3 MB, free: 14.14 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006038/0.7211, allocations: 206.2 kB / 398.5 MB, free: 14.02 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.643e-06/0.7211, allocations: 0 / 398.5 MB, free: 14.02 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001657/0.7228, allocations: 116.8 kB / 398.6 MB, free: 14.01 MB / 282.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 (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.0003974/0.7233, allocations: 110.8 kB / 398.7 MB, free: 13.91 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001753/0.7251, allocations: 312 kB / 399 MB, free: 13.82 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/0.7251, allocations: 1.188 kB / 399 MB, free: 13.82 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007749/0.7259, allocations: 155.2 kB / 399.1 MB, free: 13.76 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001168/0.7271, allocations: 58.53 kB / 399.2 MB, free: 13.73 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007466/0.7347, allocations: 2.047 MB / 401.2 MB, free: 12.31 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00132/0.7361, allocations: 0.9397 MB / 402.2 MB, free: 11.59 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003156/0.7365, allocations: 38.94 kB / 402.2 MB, free: 11.58 MB / 282.7 MB Notification: Performance of SimCode: time 2.645e-06/0.7365, allocations: 0 / 402.2 MB, free: 11.58 MB / 282.7 MB Notification: Performance of Templates: time 0.03778/0.7743, allocations: 9.274 MB / 411.5 MB, free: 8.105 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches