Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBraking.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.TestBraking,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.336/2.336, allocations: 234.9 MB / 250.4 MB, free: 9.777 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004364/0.0004365, allocations: 16 kB / 314.4 MB, free: 9.734 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3866/0.3871, allocations: 54.85 MB / 369.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.003091/0.3902, allocations: 1.701 MB / 371 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001614/0.3919, allocations: 0.6716 MB / 371.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.392, allocations: 7.938 kB / 371.6 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.013e-05/0.3921, allocations: 27.83 kB / 371.7 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002702/0.3924, allocations: 83.75 kB / 371.7 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003942/0.3928, allocations: 79.73 kB / 371.8 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003592/0.3932, allocations: 179.6 kB / 372 MB, free: 10.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001709/0.3934, allocations: 56.62 kB / 372.1 MB, free: 9.969 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.3935, allocations: 71.73 kB / 372.1 MB, free: 9.898 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001862/0.3937, allocations: 91.61 kB / 372.2 MB, free: 9.809 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.667e-05/0.3938, allocations: 12 kB / 372.2 MB, free: 9.797 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.955e-05/0.3938, allocations: 12 kB / 372.2 MB, free: 9.785 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.768e-05/0.3939, allocations: 35.84 kB / 372.3 MB, free: 9.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.55e-05/0.394, allocations: 65.58 kB / 372.3 MB, free: 9.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002559/0.3942, allocations: 164.5 kB / 372.5 MB, free: 9.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.237e-06/0.3942, allocations: 0 / 372.5 MB, free: 9.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3943, allocations: 0 / 372.5 MB, free: 9.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.3943, allocations: 0 / 372.5 MB, free: 9.52 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0009211/0.3952, allocations: 483 kB / 373 MB, free: 9 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.3953, allocations: 12.03 kB / 373 MB, free: 8.988 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.347e-05/0.3953, allocations: 50.55 kB / 373 MB, free: 8.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.787e-05/0.3954, allocations: 23.72 kB / 373.1 MB, free: 8.906 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003472/0.3958, allocations: 229.9 kB / 373.3 MB, free: 8.645 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.3958, allocations: 16.44 kB / 373.3 MB, free: 8.629 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.933e-05/0.3959, allocations: 23.91 kB / 373.3 MB, free: 8.605 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005195/0.3964, allocations: 222.6 kB / 373.5 MB, free: 8.371 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/0.3965, allocations: 0 / 373.5 MB, free: 8.371 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.971e-05/0.3965, allocations: 15.95 kB / 373.5 MB, free: 8.355 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/0.3965, allocations: 7.984 kB / 373.6 MB, free: 8.348 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003444/0.3969, allocations: 119.9 kB / 373.7 MB, free: 8.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001971/0.3989, allocations: 1.025 MB / 374.7 MB, free: 7.113 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003556/0.3992, allocations: 162.4 kB / 374.9 MB, free: 6.918 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.232e-05/0.3993, allocations: 3.984 kB / 374.9 MB, free: 6.914 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/0.3993, allocations: 38.59 kB / 374.9 MB, free: 6.867 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.254e-06/0.3993, allocations: 7.938 kB / 374.9 MB, free: 6.859 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005198/0.3999, allocations: 149.8 kB / 375.1 MB, free: 6.707 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.004e-05/0.4, allocations: 128.5 kB / 375.2 MB, free: 6.551 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002499/0.4002, allocations: 190.8 kB / 375.4 MB, free: 6.352 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/0.4003, allocations: 29.7 kB / 375.4 MB, free: 6.316 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.4005, allocations: 226.2 kB / 375.6 MB, free: 6.094 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.267e-05/0.4005, allocations: 59.2 kB / 375.7 MB, free: 6.035 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.716e-05/0.4006, allocations: 8.125 kB / 375.7 MB, free: 6.027 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.4007, allocations: 322.8 kB / 376 MB, free: 5.703 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.4009, allocations: 43.97 kB / 376 MB, free: 5.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.4011, allocations: 146.6 kB / 376.2 MB, free: 5.465 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001909/0.4013, allocations: 71.94 kB / 376.3 MB, free: 5.395 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.4013, allocations: 7.938 kB / 376.3 MB, free: 5.387 MB / 298.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007405/0.4021, allocations: 225.5 kB / 376.5 MB, free: 5.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/0.4021, allocations: 8 kB / 376.5 MB, free: 5.152 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.532e-05/0.4022, allocations: 7.984 kB / 376.5 MB, free: 5.145 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.869e-05/0.4022, allocations: 4 kB / 376.5 MB, free: 5.141 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005686/0.4028, allocations: 59.92 kB / 376.6 MB, free: 5.082 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.816e-05/0.4029, allocations: 11.98 kB / 376.6 MB, free: 5.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004523/0.4033, allocations: 19.84 kB / 376.6 MB, free: 5.051 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-05/0.4034, allocations: 15.95 kB / 376.6 MB, free: 5.035 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (31): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002994/0.4037, allocations: 138.2 kB / 376.7 MB, free: 4.891 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/0.404, allocations: 23.88 kB / 376.8 MB, free: 4.867 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003266/0.4043, allocations: 74.61 kB / 376.8 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.4043, allocations: 4 kB / 376.8 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.4043, allocations: 0 / 376.8 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.4044, allocations: 0 / 376.8 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006676/0.405, allocations: 265.4 kB / 377.1 MB, free: 4.477 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.4051, allocations: 0 / 377.1 MB, free: 4.477 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004418/0.4055, allocations: 47.92 kB / 377.1 MB, free: 4.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.999e-06/0.4055, allocations: 4 kB / 377.1 MB, free: 4.426 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.4056, allocations: 256 / 377.1 MB, free: 4.426 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.336e-06/0.4056, allocations: 12 kB / 377.2 MB, free: 4.414 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.4056, allocations: 0 / 377.2 MB, free: 4.414 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005553/0.4062, allocations: 497.3 kB / 377.6 MB, free: 3.91 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.965e-05/0.4063, allocations: 92.86 kB / 377.7 MB, free: 3.801 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.468e-05/0.4063, allocations: 4 kB / 377.7 MB, free: 3.797 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002643/0.4066, allocations: 12 kB / 377.8 MB, free: 3.785 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.109e-05/0.4066, allocations: 7.984 kB / 377.8 MB, free: 3.777 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.4066, allocations: 4 kB / 377.8 MB, free: 3.773 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001663/0.4068, allocations: 133.2 kB / 377.9 MB, free: 3.645 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4068, allocations: 0 / 377.9 MB, free: 3.645 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006054/0.4075, allocations: 55.84 kB / 377.9 MB, free: 3.59 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi) * 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 (15): * Single equations (assignments): 15 * 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.0008465/0.4083, allocations: 1.026 MB / 379 MB, free: 2.539 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003618/0.4087, allocations: 128.5 kB / 379.1 MB, free: 2.414 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4087, allocations: 0 / 379.1 MB, free: 2.414 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.4088, allocations: 43.92 kB / 379.1 MB, free: 2.371 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006508/0.4095, allocations: 42.75 kB / 379.2 MB, free: 2.332 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003624/0.4131, allocations: 1.725 MB / 380.9 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000476/0.4136, allocations: 0.7441 MB / 381.7 MB, free: 15.73 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.4138, allocations: 63.42 kB / 381.7 MB, free: 15.67 MB / 314.7 MB Notification: Performance of SimCode: time 8.92e-07/0.4138, allocations: 4 kB / 381.7 MB, free: 15.66 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.344/2.758, allocations: 3.287 MB / 385 MB, free: 12.38 MB / 314.7 MB "Error: Could not read variable inertia1.der(phi) in file ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBraking_res.mat. Warning: Get data of variable inertia1.der(phi) from file ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBraking_res.mat failed! Error: Could not read variable inertia2.der(phi) in file ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBraking_res.mat. Warning: Get data of variable inertia2.der(phi) from file ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBraking_res.mat failed! Error: Could not read variable inertia3.der(phi) in file ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBraking_res.mat. Warning: Get data of variable inertia3.der(phi) from file ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBraking_res.mat failed! Error: Could not read variable inertia4.der(phi) in file ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBraking_res.mat. Warning: Get data of variable inertia4.der(phi) from file ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.TestBraking_res.mat failed! " Variables in the reference:time,inertia1.phi,inertia1.w,inertia2.phi,inertia2.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w Variables in the result:constantTorque.flange.phi,constantTorque.flange.tau,constantTorque.phi,constantTorque.phi_support,constantTorque.tau,constantTorque.tau_constant,constantTorque.useSupport,constantTorque.w,der(constantTorque.phi),der(inertia1.w),der(inertia2.w),der(inertia3.w),der(inertia4.w),der(linearSpeedDependentTorque.phi),der(quadraticSpeedDependentTorque.phi),der(signTorque.phi),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,linearSpeedDependentTorque.TorqueDirection,linearSpeedDependentTorque.flange.phi,linearSpeedDependentTorque.flange.tau,linearSpeedDependentTorque.phi,linearSpeedDependentTorque.phi_support,linearSpeedDependentTorque.tau,linearSpeedDependentTorque.tau_nominal,linearSpeedDependentTorque.useSupport,linearSpeedDependentTorque.w,linearSpeedDependentTorque.w_nominal,quadraticSpeedDependentTorque.TorqueDirection,quadraticSpeedDependentTorque.flange.phi,quadraticSpeedDependentTorque.flange.tau,quadraticSpeedDependentTorque.phi,quadraticSpeedDependentTorque.phi_support,quadraticSpeedDependentTorque.tau,quadraticSpeedDependentTorque.tau_nominal,quadraticSpeedDependentTorque.useSupport,quadraticSpeedDependentTorque.w,quadraticSpeedDependentTorque.w_nominal,signTorque.flange.phi,signTorque.flange.tau,signTorque.phi,signTorque.phi_support,signTorque.reg,signTorque.tau,signTorque.tau_constant,signTorque.useSupport,signTorque.w,signTorque.w0,time