Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001329/0.001329, allocations: 117.8 kB / 17.79 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001387/0.001387, allocations: 206 kB / 18.74 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 227.4 MB / 247 MB, free: 10.41 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.2362/0.2362, allocations: 46.11 MB / 344.4 MB, free: 11.43 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.002324/0.002325, allocations: 75.88 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3278/0.3302, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004008/0.3342, allocations: 2.372 MB / 0.5329 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001643/0.3359, allocations: 0.9017 MB / 0.5338 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.3361, allocations: 7.344 kB / 0.5338 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002933/0.3364, allocations: 56.34 kB / 0.5338 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002125/0.3366, allocations: 70.62 kB / 0.5339 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004095/0.337, allocations: 147.7 kB / 0.5341 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004262/0.3375, allocations: 352.8 kB / 0.5344 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002028/0.3377, allocations: 83.41 kB / 0.5345 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003283/0.338, allocations: 154.5 kB / 0.5346 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002635/0.3383, allocations: 167.6 kB / 0.5348 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.1e-05/0.3384, allocations: 27.5 kB / 0.5348 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001846/0.3386, allocations: 83.23 kB / 0.5349 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.3387, allocations: 74.73 kB / 0.535 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.3389, allocations: 133.9 kB / 0.5351 GB, free: 9.93 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000551/0.3394, allocations: 392.3 kB / 0.5355 GB, free: 9.652 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3394, allocations: 0 / 0.5355 GB, free: 9.652 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3394, allocations: 1.125 kB / 0.5355 GB, free: 9.652 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.3395, allocations: 0 / 0.5355 GB, free: 9.652 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.00104/0.3405, allocations: 0.5875 MB / 0.536 GB, free: 9.113 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.3406, allocations: 9.031 kB / 0.536 GB, free: 9.113 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.765e-05/0.3406, allocations: 62.98 kB / 0.5361 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001824/0.3408, allocations: 38.86 kB / 0.5361 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003941/0.3412, allocations: 262.2 kB / 0.5364 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.622e-05/0.3413, allocations: 19.19 kB / 0.5364 GB, free: 8.754 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.056e-05/0.3413, allocations: 26.8 kB / 0.5364 GB, free: 8.742 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005741/0.3419, allocations: 267.1 kB / 0.5367 GB, free: 8.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.342, allocations: 5.047 kB / 0.5367 GB, free: 8.566 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3e-05/0.342, allocations: 10.45 kB / 0.5367 GB, free: 8.559 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.342, allocations: 4.969 kB / 0.5367 GB, free: 8.559 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005185/0.3425, allocations: 237.6 kB / 0.5369 GB, free: 8.445 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001456/0.344, allocations: 0.7309 MB / 0.5376 GB, free: 7.836 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005729/0.3446, allocations: 252.2 kB / 0.5379 GB, free: 7.695 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002656/0.3449, allocations: 134.5 kB / 0.538 GB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.471e-05/0.3449, allocations: 3.094 kB / 0.538 GB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.3449, allocations: 31.5 kB / 0.538 GB, free: 7.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.723e-06/0.345, allocations: 0.7812 kB / 0.538 GB, free: 7.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.003334/0.3483, allocations: 1.424 MB / 0.5394 GB, free: 6.547 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.428e-05/0.3484, allocations: 54.56 kB / 0.5395 GB, free: 6.484 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000239/0.3486, allocations: 209.5 kB / 0.5397 GB, free: 6.324 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.067e-05/0.3487, allocations: 36.55 kB / 0.5397 GB, free: 6.285 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.3488, allocations: 138.7 kB / 0.5399 GB, free: 6.156 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.3489, allocations: 128.4 kB / 0.54 GB, free: 6.043 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.349, allocations: 66.97 kB / 0.54 GB, free: 5.996 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.3492, allocations: 339.6 kB / 0.5404 GB, free: 5.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002604/0.3494, allocations: 115.8 kB / 0.5405 GB, free: 5.605 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003087/0.3498, allocations: 165.1 kB / 0.5406 GB, free: 5.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004605/0.3502, allocations: 241 kB / 0.5409 GB, free: 5.359 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3502, allocations: 1.125 kB / 0.5409 GB, free: 5.359 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009239/0.3512, allocations: 431.3 kB / 0.5413 GB, free: 5.129 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.3512, allocations: 15.31 kB / 0.5413 GB, free: 5.121 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.3512, allocations: 1.312 kB / 0.5413 GB, free: 5.121 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005404/0.3518, allocations: 192.3 kB / 0.5415 GB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002334/0.352, allocations: 53.28 kB / 0.5415 GB, free: 5.012 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008245/0.3528, allocations: 0.7307 MB / 0.5422 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000301/0.3532, allocations: 39.86 kB / 0.5423 GB, free: 4.352 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.867e-05/0.3532, allocations: 11.77 kB / 0.5423 GB, free: 4.348 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002038/0.3534, allocations: 147.9 kB / 0.5424 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.686e-05/0.3535, allocations: 23.42 kB / 0.5425 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001008/0.3536, allocations: 42.98 kB / 0.5425 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.3536, allocations: 7.031 kB / 0.5425 GB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.3536, allocations: 9.375 kB / 0.5425 GB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.3536, allocations: 0 / 0.5425 GB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001762/0.3554, allocations: 0.9385 MB / 0.5434 GB, free: 3.414 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3554, allocations: 4.031 kB / 0.5434 GB, free: 3.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000251/0.3557, allocations: 46.27 kB / 0.5435 GB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000417/0.3561, allocations: 184 kB / 0.5436 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.104e-05/0.3561, allocations: 7.219 kB / 0.5437 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007193/0.3569, allocations: 0.6925 MB / 0.5443 GB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.3569, allocations: 1.531 kB / 0.5443 GB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.3581, allocations: 0.6201 MB / 0.5449 GB, free: 2.266 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001751/0.3583, allocations: 136.2 kB / 0.5451 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.882e-05/0.3584, allocations: 12.53 kB / 0.5451 GB, free: 2.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002656/0.3587, allocations: 33.83 kB / 0.5451 GB, free: 2.102 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.3588, allocations: 47.3 kB / 0.5452 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.947e-05/0.3589, allocations: 14.7 kB / 0.5452 GB, free: 2.066 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001615/0.359, allocations: 150.6 kB / 0.5453 GB, free: 1.961 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.359, allocations: 0 / 0.5453 GB, free: 1.961 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000389/0.3594, allocations: 75.56 kB / 0.5454 GB, free: 1.945 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00267/0.3621, allocations: 1.385 MB / 0.5467 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008188/0.363, allocations: 303.6 kB / 0.547 GB, free: 424 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.363, allocations: 128 / 0.547 GB, free: 424 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003593/0.3633, allocations: 180.2 kB / 0.5472 GB, free: 244 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004818/0.3638, allocations: 46.09 kB / 0.5472 GB, free: 200 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005217/0.3691, allocations: 3.094 MB / 0.5503 GB, free: 12.99 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003817/0.3695, allocations: 0.7563 MB / 0.551 GB, free: 12.2 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001203/0.3696, allocations: 22.3 kB / 0.551 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.3697, allocations: 75.39 kB / 0.5511 GB, free: 12.11 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3698, allocations: 0 / 0.5511 GB, free: 12.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03517/0.4049, allocations: 7.869 MB / 0.5588 GB, free: 4.438 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/13.03, allocations: 3.438 kB / 0.5588 GB, free: 4.438 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_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_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1)