Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.First.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.546/1.546, allocations: 171.2 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000336/0.000336, allocations: 12 kB / 233.3 MB, free: 2.965 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07628/0.07664, allocations: 38.77 MB / 272 MB, free: 12.12 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003045/0.07973, allocations: 1.842 MB / 273.9 MB, free: 10.26 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.08096, allocations: 0.5812 MB / 274.4 MB, free: 9.676 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.0811, allocations: 7.938 kB / 274.4 MB, free: 9.668 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 6.582e-05/0.08118, allocations: 19.84 kB / 274.5 MB, free: 9.648 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002597/0.08145, allocations: 83.75 kB / 274.5 MB, free: 9.566 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002178/0.08168, allocations: 43.95 kB / 274.6 MB, free: 9.523 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003389/0.08204, allocations: 187.6 kB / 274.8 MB, free: 9.34 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002275/0.08228, allocations: 93.2 kB / 274.9 MB, free: 9.246 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000176/0.08247, allocations: 91.62 kB / 275 MB, free: 9.156 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001878/0.08267, allocations: 95.55 kB / 275 MB, free: 9.062 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.01e-05/0.08273, allocations: 16 kB / 275.1 MB, free: 9.047 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.384e-05/0.08279, allocations: 12 kB / 275.1 MB, free: 9.035 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.553e-05/0.08285, allocations: 35.84 kB / 275.1 MB, free: 9 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.37e-05/0.08293, allocations: 69.58 kB / 275.2 MB, free: 8.926 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002691/0.08321, allocations: 183.8 kB / 275.4 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.08323, allocations: 0 / 275.4 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.08324, allocations: 4 kB / 275.4 MB, free: 8.742 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.08325, allocations: 0 / 275.4 MB, free: 8.742 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0008457/0.08411, allocations: 494.9 kB / 275.8 MB, free: 8.211 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.08416, allocations: 8.031 kB / 275.9 MB, free: 8.203 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.648e-05/0.08425, allocations: 62.53 kB / 275.9 MB, free: 8.133 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.703e-05/0.08433, allocations: 27.66 kB / 275.9 MB, free: 8.105 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003205/0.08466, allocations: 239.2 kB / 276.2 MB, free: 7.832 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.0847, allocations: 16.44 kB / 276.2 MB, free: 7.816 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.835e-05/0.08476, allocations: 23.98 kB / 276.2 MB, free: 7.793 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005237/0.0853, allocations: 199.2 kB / 276.4 MB, free: 7.59 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.08534, allocations: 4 kB / 276.4 MB, free: 7.586 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.91e-05/0.08537, allocations: 8 kB / 276.4 MB, free: 7.578 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.08539, allocations: 8 kB / 276.4 MB, free: 7.57 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004476/0.08585, allocations: 137.7 kB / 276.6 MB, free: 7.438 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.08722, allocations: 0.6345 MB / 277.2 MB, free: 6.75 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004511/0.08769, allocations: 182.6 kB / 277.4 MB, free: 6.562 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.658e-05/0.08773, allocations: 0 / 277.4 MB, free: 6.562 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/0.08777, allocations: 38.56 kB / 277.4 MB, free: 6.516 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.724e-06/0.08778, allocations: 0 / 277.4 MB, free: 6.516 MB / 234.7 MB Notification: Performance of matching and sorting (n=32): time 0.002759/0.09055, allocations: 1.075 MB / 278.5 MB, free: 5.348 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.09061, allocations: 59.41 kB / 278.5 MB, free: 5.277 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002389/0.09086, allocations: 182.4 kB / 278.7 MB, free: 5.09 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/0.0909, allocations: 29.7 kB / 278.8 MB, free: 5.055 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.09102, allocations: 199.1 kB / 278.9 MB, free: 4.859 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.09115, allocations: 118.3 kB / 279.1 MB, free: 4.742 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.685e-05/0.09117, allocations: 4 kB / 279.1 MB, free: 4.738 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.0913, allocations: 326.8 kB / 279.4 MB, free: 4.41 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002318/0.09154, allocations: 71.97 kB / 279.5 MB, free: 4.34 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002644/0.09183, allocations: 106.6 kB / 279.6 MB, free: 4.227 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000269/0.09211, allocations: 89.34 kB / 279.6 MB, free: 4.141 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.09213, allocations: 0 / 279.6 MB, free: 4.141 MB / 234.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007791/0.09291, allocations: 291.8 kB / 279.9 MB, free: 3.848 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.09295, allocations: 4 kB / 279.9 MB, free: 3.844 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.09296, allocations: 0 / 279.9 MB, free: 3.844 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002457/0.09322, allocations: 48.83 kB / 280 MB, free: 3.793 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004318/0.09366, allocations: 59.91 kB / 280 MB, free: 3.734 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001893/0.09557, allocations: 1.569 MB / 281.6 MB, free: 2.035 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.0958, allocations: 16.09 kB / 281.6 MB, free: 2.02 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.674e-05/0.09584, allocations: 11.98 kB / 281.6 MB, free: 2.008 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001812/0.09603, allocations: 141.7 kB / 281.8 MB, free: 1.859 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.138e-05/0.0961, allocations: 19.81 kB / 281.8 MB, free: 1.84 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.659e-05/0.09619, allocations: 30.66 kB / 281.8 MB, free: 1.809 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.09621, allocations: 4 kB / 281.8 MB, free: 1.805 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.09622, allocations: 3.984 kB / 281.8 MB, free: 1.801 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.09624, allocations: 3.984 kB / 281.8 MB, free: 1.797 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001621/0.09787, allocations: 0.7936 MB / 282.6 MB, free: 0.9297 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.09789, allocations: 4.312 kB / 282.6 MB, free: 0.9258 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004962/0.0984, allocations: 59.91 kB / 282.7 MB, free: 0.8672 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001878/0.0986, allocations: 36.83 kB / 282.7 MB, free: 0.8281 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.556e-05/0.09864, allocations: 8 kB / 282.7 MB, free: 0.8203 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001486/0.1001, allocations: 1.39 MB / 284.1 MB, free: 15.29 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1002, allocations: 0 / 284.1 MB, free: 15.29 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.1012, allocations: 491.7 kB / 284.6 MB, free: 14.78 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.1014, allocations: 113.3 kB / 284.7 MB, free: 14.65 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.898e-05/0.1014, allocations: 8 kB / 284.7 MB, free: 14.64 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002247/0.1017, allocations: 8 kB / 284.7 MB, free: 14.64 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.692e-05/0.1018, allocations: 31.86 kB / 284.8 MB, free: 14.61 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.356e-05/0.1018, allocations: 8 kB / 284.8 MB, free: 14.6 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001504/0.102, allocations: 139 kB / 284.9 MB, free: 14.46 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.102, allocations: 0 / 284.9 MB, free: 14.46 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005392/0.1025, allocations: 68 kB / 285 MB, free: 14.39 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001358/0.1039, allocations: 1.032 MB / 286 MB, free: 13.32 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0008885/0.1048, allocations: 342.4 kB / 286.3 MB, free: 12.97 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1048, allocations: 0 / 286.3 MB, free: 12.97 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005239/0.1053, allocations: 242.8 kB / 286.6 MB, free: 12.72 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004677/0.1058, allocations: 37.56 kB / 286.6 MB, free: 12.69 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003717/0.1096, allocations: 1.71 MB / 288.3 MB, free: 10.91 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003665/0.1099, allocations: 0.7677 MB / 289.1 MB, free: 10.11 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001878/0.1102, allocations: 79.34 kB / 289.2 MB, free: 10.04 MB / 250.7 MB Notification: Performance of SimCode: time 9.81e-07/0.1102, allocations: 0 / 289.2 MB, free: 10.04 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.51/2.621, allocations: 4.76 MB / 293.9 MB, free: 5.27 MB / 250.7 MB "Error: Could not read variable sine.pi in file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.First_res.mat. Warning: Get data of variable sine.pi from file Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.First_res.mat failed! " Variables in the reference:time,damper.phi_rel,damper.w_rel,inertia3.phi,inertia3.w Variables in the result:Jload,Jmotor,amplitude,damper.a_rel,damper.d,damper.flange_a.phi,damper.flange_a.tau,damper.flange_b.phi,damper.flange_b.tau,damper.lossPower,damper.phi_nominal,damper.phi_rel,damper.stateSelect,damper.tau,damper.useHeatPort,damper.w_rel,damping,der(damper.phi_rel),der(damper.w_rel),der(der(idealGear.phi_a)),der(der(idealGear.phi_b)),der(idealGear.phi_a),der(idealGear.phi_b),der(inertia1.phi),der(inertia1.w),der(inertia2.phi),der(inertia2.w),der(inertia3.phi),der(inertia3.w),fixed.flange.phi,fixed.flange.tau,fixed.phi0,freqHz,idealGear.flange_a.phi,idealGear.flange_a.tau,idealGear.flange_b.phi,idealGear.flange_b.tau,idealGear.phi_a,idealGear.phi_b,idealGear.phi_support,idealGear.ratio,idealGear.support.phi,idealGear.support.tau,idealGear.useSupport,inertia1.J,inertia1.a,inertia1.flange_a.phi,inertia1.flange_a.tau,inertia1.flange_b.phi,inertia1.flange_b.tau,inertia1.phi,inertia1.stateSelect,inertia1.w,inertia2.J,inertia2.a,inertia2.flange_a.phi,inertia2.flange_a.tau,inertia2.flange_b.phi,inertia2.flange_b.tau,inertia2.phi,inertia2.stateSelect,inertia2.w,inertia3.J,inertia3.a,inertia3.flange_a.phi,inertia3.flange_a.tau,inertia3.flange_b.phi,inertia3.flange_b.tau,inertia3.phi,inertia3.stateSelect,inertia3.w,ratio,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,spring.c,spring.flange_a.phi,spring.flange_a.tau,spring.flange_b.phi,spring.flange_b.tau,spring.phi_rel,spring.phi_rel0,spring.tau,time,torque.flange.phi,torque.flange.tau,torque.phi_support,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport