Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001337/0.001337, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2392/0.2392, allocations: 46.12 MB / 344.4 MB, free: 11.45 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002173/0.002173, allocations: 79.86 kB / 480.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3624/0.3646, allocations: 62.44 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.006338/0.371, allocations: 4.115 MB / 0.5346 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003005/0.374, allocations: 1.48 MB / 0.536 GB, free: 8.883 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003372/0.3744, allocations: 14.03 kB / 0.5361 GB, free: 8.879 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004279/0.3748, allocations: 134.4 kB / 0.5362 GB, free: 8.766 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005935/0.3755, allocations: 288.5 kB / 0.5365 GB, free: 8.535 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006744/0.3761, allocations: 340.7 kB / 0.5368 GB, free: 8.242 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001167/0.3773, allocations: 1.093 MB / 0.5379 GB, free: 7.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000331/0.3777, allocations: 187.8 kB / 0.538 GB, free: 7.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006773/0.3783, allocations: 484.9 kB / 0.5385 GB, free: 7.199 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006584/0.379, allocations: 0.5058 MB / 0.539 GB, free: 6.859 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001474/0.3792, allocations: 81.75 kB / 0.5391 GB, free: 6.859 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00033/0.3795, allocations: 139 kB / 0.5392 GB, free: 6.84 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002891/0.3798, allocations: 242 kB / 0.5394 GB, free: 6.641 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004583/0.3803, allocations: 422.6 kB / 0.5398 GB, free: 6.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001276/0.3816, allocations: 1.024 MB / 0.5408 GB, free: 5.582 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.3816, allocations: 0 / 0.5408 GB, free: 5.582 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3816, allocations: 4 kB / 0.5408 GB, free: 5.578 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.901e-05/0.3816, allocations: 1.219 kB / 0.5408 GB, free: 5.578 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002448/0.3841, allocations: 1.181 MB / 0.542 GB, free: 4.648 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.3841, allocations: 9.938 kB / 0.542 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001367/0.3843, allocations: 102.8 kB / 0.5421 GB, free: 4.559 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005325/0.3848, allocations: 128.7 kB / 0.5422 GB, free: 4.496 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007918/0.3856, allocations: 484.3 kB / 0.5427 GB, free: 4.066 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.554e-05/0.3857, allocations: 53.25 kB / 0.5427 GB, free: 4.039 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.3858, allocations: 72.5 kB / 0.5428 GB, free: 4.008 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/0.3873, allocations: 0.8144 MB / 0.5436 GB, free: 3.469 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.109e-05/0.3874, allocations: 3.969 kB / 0.5436 GB, free: 3.469 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.667e-05/0.3875, allocations: 29.25 kB / 0.5436 GB, free: 3.445 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.284e-05/0.3875, allocations: 20.03 kB / 0.5437 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001817/0.3893, allocations: 0.7416 MB / 0.5444 GB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004413/0.3937, allocations: 2.582 MB / 0.5469 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.3953, allocations: 0.6759 MB / 0.5476 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007613/0.3961, allocations: 371.2 kB / 0.5479 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.771e-05/0.3961, allocations: 12 kB / 0.5479 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.928e-05/0.3962, allocations: 46.55 kB / 0.548 GB, free: 15.54 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 2.514e-06/0.3962, allocations: 0 / 0.548 GB, free: 15.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.008383/0.4046, allocations: 3.563 MB / 0.5514 GB, free: 11.72 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.732e-05/0.4047, allocations: 136.5 kB / 0.5516 GB, free: 11.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000628/0.4053, allocations: 478 kB / 0.552 GB, free: 11.08 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.914e-05/0.4054, allocations: 53.7 kB / 0.5521 GB, free: 11.02 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002349/0.4057, allocations: 285.1 kB / 0.5524 GB, free: 10.73 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002736/0.4059, allocations: 305.6 kB / 0.5526 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003043/0.4063, allocations: 178.5 kB / 0.5528 GB, free: 10.25 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.4065, allocations: 370.8 kB / 0.5532 GB, free: 9.883 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007989/0.4073, allocations: 361.8 kB / 0.5535 GB, free: 9.527 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009309/0.4082, allocations: 0.5176 MB / 0.554 GB, free: 8.953 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/0.4096, allocations: 0.6886 MB / 0.5547 GB, free: 8.211 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.4096, allocations: 4 kB / 0.5547 GB, free: 8.207 MB / 414.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002729/0.4123, allocations: 1.215 MB / 0.5559 GB, free: 6.973 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.4124, allocations: 12 kB / 0.5559 GB, free: 6.961 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.4124, allocations: 4 kB / 0.5559 GB, free: 6.957 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001323/0.4137, allocations: 0.5771 MB / 0.5565 GB, free: 6.367 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005363/0.4143, allocations: 151.7 kB / 0.5566 GB, free: 6.219 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004144/0.4184, allocations: 3.85 MB / 0.5604 GB, free: 2.148 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/0.4195, allocations: 147.8 kB / 0.5605 GB, free: 2.004 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.881e-05/0.4196, allocations: 36 kB / 0.5605 GB, free: 1.969 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,8), (1,10), (1,6), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004189/0.42, allocations: 224.2 kB / 0.5608 GB, free: 1.738 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002207/0.4202, allocations: 75.53 kB / 0.5608 GB, free: 1.664 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002085/0.4204, allocations: 92.83 kB / 0.5609 GB, free: 1.574 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-05/0.4205, allocations: 12 kB / 0.5609 GB, free: 1.562 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.4205, allocations: 8 kB / 0.5609 GB, free: 1.555 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.337e-06/0.4205, allocations: 3.984 kB / 0.5609 GB, free: 1.551 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004376/0.4249, allocations: 2.158 MB / 0.563 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/0.4249, allocations: 4 kB / 0.5631 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005883/0.4255, allocations: 111.9 kB / 0.5632 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001219/0.4267, allocations: 0.5302 MB / 0.5637 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.784e-05/0.4268, allocations: 35.91 kB / 0.5637 GB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004105/0.4309, allocations: 3.651 MB / 0.5673 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.431, allocations: 96 / 0.5673 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003574/0.4346, allocations: 1.746 MB / 0.569 GB, free: 8.992 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004506/0.435, allocations: 228.4 kB / 0.5692 GB, free: 8.75 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/0.4352, allocations: 35.98 kB / 0.5692 GB, free: 8.715 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009522/0.4362, allocations: 119.8 kB / 0.5693 GB, free: 8.598 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005612/0.4368, allocations: 191.7 kB / 0.5695 GB, free: 8.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.647e-05/0.4369, allocations: 35.97 kB / 0.5696 GB, free: 8.375 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004795/0.4373, allocations: 326.9 kB / 0.5699 GB, free: 8.059 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4373, allocations: 0 / 0.5699 GB, free: 8.059 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001011/0.4384, allocations: 204 kB / 0.5701 GB, free: 7.859 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,6), (1,10), (1,7), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00545/0.4438, allocations: 2.573 MB / 0.5726 GB, free: 5.363 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002609/0.4464, allocations: 1.041 MB / 0.5736 GB, free: 4.309 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.4465, allocations: 3.938 kB / 0.5736 GB, free: 4.305 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001575/0.4481, allocations: 0.6278 MB / 0.5742 GB, free: 3.664 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001338/0.4494, allocations: 136.4 kB / 0.5743 GB, free: 3.531 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01603/0.4655, allocations: 7.405 MB / 0.5816 GB, free: 11.89 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008514/0.4664, allocations: 0.938 MB / 0.5825 GB, free: 10.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004207/0.4668, allocations: 73.05 kB / 0.5826 GB, free: 10.85 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004119/0.4672, allocations: 243.3 kB / 0.5828 GB, free: 10.61 MB / 446.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4672, allocations: 0 / 0.5828 GB, free: 10.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06502/0.5323, allocations: 22.04 MB / 0.6043 GB, free: 4.789 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.16/13.69, allocations: 7.688 kB / 0.6043 GB, free: 4.785 MB / 462.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.pipe 2>&1)