Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.InitializationConversion.SpringDamper.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.InitializationConversion.SpringDamper,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_InitializationConversion_SpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.41/2.41, allocations: 234.9 MB / 250.5 MB, free: 9.688 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004474/0.0004476, allocations: 8 kB / 314.4 MB, free: 9.645 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.3552, allocations: 54.86 MB / 369.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.InitializationConversion.SpringDamper): time 0.004248/0.3595, allocations: 2.536 MB / 371.8 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001983/0.3616, allocations: 0.8235 MB / 372.6 MB, free: 9.402 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002489/0.3618, allocations: 11.94 kB / 372.6 MB, free: 9.391 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000113/0.362, allocations: 47.56 kB / 372.7 MB, free: 9.344 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005359/0.3625, allocations: 203.4 kB / 372.9 MB, free: 9.145 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002883/0.3628, allocations: 79.91 kB / 373 MB, free: 9.066 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006895/0.3635, allocations: 438.8 kB / 373.4 MB, free: 8.637 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003081/0.3639, allocations: 128.7 kB / 373.5 MB, free: 8.508 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002762/0.3641, allocations: 187.3 kB / 373.7 MB, free: 8.324 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000363/0.3645, allocations: 211.1 kB / 373.9 MB, free: 8.117 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.684e-05/0.3646, allocations: 23.94 kB / 373.9 MB, free: 8.094 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.3647, allocations: 24 kB / 374 MB, free: 8.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.084e-05/0.3648, allocations: 83.67 kB / 374 MB, free: 7.988 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001441/0.365, allocations: 117.5 kB / 374.2 MB, free: 7.867 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005504/0.3655, allocations: 391.8 kB / 374.5 MB, free: 7.484 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.3656, allocations: 0 / 374.5 MB, free: 7.484 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.3656, allocations: 0 / 374.5 MB, free: 7.484 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.3656, allocations: 8 kB / 374.5 MB, free: 7.477 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001465/0.3671, allocations: 0.6859 MB / 375.2 MB, free: 6.742 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.3671, allocations: 12.03 kB / 375.2 MB, free: 6.73 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000124/0.3673, allocations: 86.52 kB / 375.3 MB, free: 6.637 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.3674, allocations: 55.34 kB / 375.4 MB, free: 6.582 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005122/0.3679, allocations: 317.2 kB / 375.7 MB, free: 6.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.569e-05/0.368, allocations: 33 kB / 375.7 MB, free: 6.195 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.3681, allocations: 55.91 kB / 375.8 MB, free: 6.141 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.3692, allocations: 430.6 kB / 376.2 MB, free: 5.703 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.065e-05/0.3692, allocations: 7.906 kB / 376.2 MB, free: 5.695 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.75e-05/0.3693, allocations: 23.95 kB / 376.2 MB, free: 5.672 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.3693, allocations: 12 kB / 376.2 MB, free: 5.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008178/0.3701, allocations: 316.4 kB / 376.5 MB, free: 5.352 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002739/0.3729, allocations: 1.15 MB / 377.7 MB, free: 4.148 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001146/0.3741, allocations: 481.2 kB / 378.2 MB, free: 3.637 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.125e-05/0.3742, allocations: 8.438 kB / 378.2 MB, free: 3.629 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.3742, allocations: 38.94 kB / 378.2 MB, free: 3.582 MB / 298.7 MB Notification: Performance of pre-optimization done (n=62): time 3.717e-06/0.3742, allocations: 4 kB / 378.2 MB, free: 3.578 MB / 298.7 MB Notification: Performance of matching and sorting (n=74): time 0.004683/0.3789, allocations: 2.143 MB / 380.4 MB, free: 1.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.707e-05/0.379, allocations: 85.67 kB / 380.4 MB, free: 1.168 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000361/0.3794, allocations: 251 kB / 380.7 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.544e-05/0.3795, allocations: 41.69 kB / 380.7 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.3796, allocations: 259.4 kB / 381 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000262/0.3799, allocations: 268 kB / 381.2 MB, free: 348 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.299e-05/0.38, allocations: 16 kB / 381.3 MB, free: 332 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.3802, allocations: 342.8 kB / 381.6 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004352/0.3806, allocations: 153.9 kB / 381.7 MB, free: 15.83 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005356/0.3812, allocations: 268.9 kB / 382 MB, free: 15.53 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005348/0.3817, allocations: 207.4 kB / 382.2 MB, free: 15.33 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.3817, allocations: 0 / 382.2 MB, free: 15.33 MB / 314.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.00129/0.383, allocations: 0.5436 MB / 382.8 MB, free: 14.78 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.628e-05/0.3831, allocations: 4 kB / 382.8 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.3831, allocations: 4 kB / 382.8 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.996e-05/0.3831, allocations: 16.23 kB / 382.8 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.3843, allocations: 183.7 kB / 383 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.286e-05/0.3843, allocations: 4 kB / 383 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004739/0.3848, allocations: 27.98 kB / 383 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.072e-05/0.3849, allocations: 24 kB / 383 MB, free: 14.52 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (97): * Single equations (assignments): 97 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002892/0.3852, allocations: 177.7 kB / 383.2 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.3853, allocations: 47.44 kB / 383.2 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00015/0.3855, allocations: 59.64 kB / 383.3 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.3855, allocations: 7.953 kB / 383.3 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.3855, allocations: 4 kB / 383.3 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.3855, allocations: 3.984 kB / 383.3 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002983/0.3885, allocations: 1.446 MB / 384.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.3886, allocations: 4 kB / 384.8 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/0.3898, allocations: 159.8 kB / 384.9 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.619e-05/0.3899, allocations: 8 kB / 384.9 MB, free: 12.49 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.516e-05/0.3899, allocations: 16.02 kB / 384.9 MB, free: 12.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.499e-05/0.39, allocations: 12.34 kB / 384.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/0.39, allocations: 11.94 kB / 385 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001684/0.3917, allocations: 0.9041 MB / 385.9 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/0.3919, allocations: 116.5 kB / 386 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001/0.392, allocations: 19.98 kB / 386 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004877/0.3925, allocations: 27.89 kB / 386 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.3926, allocations: 52.31 kB / 386.1 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.662e-05/0.3926, allocations: 20 kB / 386.1 MB, free: 11.25 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002425/0.3929, allocations: 174 kB / 386.3 MB, free: 11.08 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3929, allocations: 0 / 386.3 MB, free: 11.08 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007225/0.3936, allocations: 148 kB / 386.4 MB, free: 10.93 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (inertia6.phi,inertia6.w,relativeStates.phi_rel,relativeStates.w_rel,inertia4.phi,inertia4.w,inertia5.phi,inertia5.w,springDamper1.phi_rel,springDamper1.w_rel,springDamper2.phi_rel,springDamper2.w_rel,springDamper3.phi_rel,springDamper3.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 (74): * Single equations (assignments): 74 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002001/0.3957, allocations: 1.457 MB / 387.9 MB, free: 9.422 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00113/0.3968, allocations: 455.6 kB / 388.3 MB, free: 8.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.3968, allocations: 3.938 kB / 388.3 MB, free: 8.977 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000523/0.3974, allocations: 234.2 kB / 388.5 MB, free: 8.746 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.3985, allocations: 104.7 kB / 388.6 MB, free: 8.645 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007394/0.4059, allocations: 3.508 MB / 392.2 MB, free: 5.004 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005555/0.4065, allocations: 0.8566 MB / 393 MB, free: 4.117 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003977/0.4069, allocations: 179.3 kB / 393.2 MB, free: 3.941 MB / 314.7 MB Notification: Performance of SimCode: time 1.392e-06/0.4069, allocations: 0 / 393.2 MB, free: 3.941 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.487/2.894, allocations: 7.752 MB / 400.9 MB, free: 12.2 MB / 330.7 MB "" Variables in the reference:time,inertia4.phi,inertia4.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,relativeStates.phi_rel,relativeStates.w_rel,springDamper1.phi_rel,springDamper1.w_rel,springDamper2.phi_rel,springDamper2.w_rel,springDamper3.phi_rel,springDamper3.w_rel Variables in the result:der(inertia1.phi),der(inertia1.w),der(inertia2.phi),der(inertia2.w),der(inertia3.phi),der(inertia3.w),der(inertia4.phi),der(inertia4.w),der(inertia5.phi),der(inertia5.w),der(inertia6.phi),der(inertia6.w),der(inertia7.phi),der(inertia7.w),der(relativeStates.phi_rel),der(relativeStates.w_rel),der(springDamper1.phi_rel),der(springDamper1.w_rel),der(springDamper2.phi_rel),der(springDamper2.w_rel),der(springDamper3.phi_rel),der(springDamper3.w_rel),der(springDamper4.phi_rel),der(springDamper4.w_rel),der(springDamper5.phi_rel),der(springDamper5.w_rel),fixed.flange.phi,fixed.flange.tau,fixed.phi0,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,inertia4.J,inertia4.a,inertia4.flange_a.phi,inertia4.flange_a.tau,inertia4.flange_b.phi,inertia4.flange_b.tau,inertia4.phi,inertia4.stateSelect,inertia4.w,inertia5.J,inertia5.a,inertia5.flange_a.phi,inertia5.flange_a.tau,inertia5.flange_b.phi,inertia5.flange_b.tau,inertia5.phi,inertia5.stateSelect,inertia5.w,inertia6.J,inertia6.a,inertia6.flange_a.phi,inertia6.flange_a.tau,inertia6.flange_b.phi,inertia6.flange_b.tau,inertia6.phi,inertia6.stateSelect,inertia6.w,inertia7.J,inertia7.a,inertia7.flange_a.phi,inertia7.flange_a.tau,inertia7.flange_b.phi,inertia7.flange_b.tau,inertia7.phi,inertia7.stateSelect,inertia7.w,relativeStates.a_rel,relativeStates.flange_a.phi,relativeStates.flange_a.tau,relativeStates.flange_b.phi,relativeStates.flange_b.tau,relativeStates.phi_nominal,relativeStates.phi_rel,relativeStates.stateSelect,relativeStates.w_rel,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,springDamper1.a_rel,springDamper1.c,springDamper1.d,springDamper1.flange_a.phi,springDamper1.flange_a.tau,springDamper1.flange_b.phi,springDamper1.flange_b.tau,springDamper1.lossPower,springDamper1.phi_nominal,springDamper1.phi_rel,springDamper1.phi_rel0,springDamper1.stateSelect,springDamper1.tau,springDamper1.tau_c,springDamper1.tau_d,springDamper1.useHeatPort,springDamper1.w_rel,springDamper2.a_rel,springDamper2.c,springDamper2.d,springDamper2.flange_a.phi,springDamper2.flange_a.tau,springDamper2.flange_b.phi,springDamper2.flange_b.tau,springDamper2.lossPower,springDamper2.phi_nominal,springDamper2.phi_rel,springDamper2.phi_rel0,springDamper2.stateSelect,springDamper2.tau,springDamper2.tau_c,springDamper2.tau_d,springDamper2.useHeatPort,springDamper2.w_rel,springDamper3.a_rel,springDamper3.c,springDamper3.d,springDamper3.flange_a.phi,springDamper3.flange_a.tau,springDamper3.flange_b.phi,springDamper3.flange_b.tau,springDamper3.lossPower,springDamper3.phi_nominal,springDamper3.phi_rel,springDamper3.phi_rel0,springDamper3.stateSelect,springDamper3.tau,springDamper3.tau_c,springDamper3.tau_d,springDamper3.useHeatPort,springDamper3.w_rel,springDamper4.a_rel,springDamper4.c,springDamper4.d,springDamper4.flange_a.phi,springDamper4.flange_a.tau,springDamper4.flange_b.phi,springDamper4.flange_b.tau,springDamper4.lossPower,springDamper4.phi_nominal,springDamper4.phi_rel,springDamper4.phi_rel0,springDamper4.stateSelect,springDamper4.tau,springDamper4.tau_c,springDamper4.tau_d,springDamper4.useHeatPort,springDamper4.w_rel,springDamper5.a_rel,springDamper5.c,springDamper5.d,springDamper5.flange_a.phi,springDamper5.flange_a.tau,springDamper5.flange_b.phi,springDamper5.flange_b.tau,springDamper5.lossPower,springDamper5.phi_nominal,springDamper5.phi_rel,springDamper5.phi_rel0,springDamper5.stateSelect,springDamper5.tau,springDamper5.tau_c,springDamper5.tau_d,springDamper5.useHeatPort,springDamper5.w_rel,time