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.00202/0.00202, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002608/0.002608, allocations: 200.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 227.4 MB / 247 MB, free: 10.46 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.2406/0.2406, allocations: 46.13 MB / 344.4 MB, free: 11.44 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.002349/0.002349, allocations: 75.88 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3608/0.3631, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004362/0.3675, allocations: 2.359 MB / 0.5329 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00193/0.3695, allocations: 0.9146 MB / 0.5338 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002019/0.3697, allocations: 3.562 kB / 0.5338 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003302/0.3701, allocations: 56.28 kB / 0.5338 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002347/0.3704, allocations: 70.84 kB / 0.5339 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004757/0.3709, allocations: 150.9 kB / 0.5341 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005027/0.3714, allocations: 353.2 kB / 0.5344 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002255/0.3716, allocations: 83.59 kB / 0.5345 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003459/0.372, allocations: 154.8 kB / 0.5346 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002966/0.3723, allocations: 163 kB / 0.5348 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.667e-05/0.3723, allocations: 27.34 kB / 0.5348 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002192/0.3726, allocations: 87.22 kB / 0.5349 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.3727, allocations: 74.73 kB / 0.535 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001703/0.3729, allocations: 133.9 kB / 0.5351 GB, free: 9.93 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006111/0.3735, allocations: 392.1 kB / 0.5355 GB, free: 9.652 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3735, allocations: 1.375 kB / 0.5355 GB, free: 9.652 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3735, allocations: 0 / 0.5355 GB, free: 9.652 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.667e-06/0.3735, 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.001195/0.3747, allocations: 0.5879 MB / 0.536 GB, free: 9.113 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.3748, allocations: 9.469 kB / 0.536 GB, free: 9.113 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.893e-05/0.3749, allocations: 62.22 kB / 0.5361 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000215/0.3751, allocations: 35.09 kB / 0.5361 GB, free: 9.035 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004757/0.3756, allocations: 254.5 kB / 0.5364 GB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.283e-05/0.3757, allocations: 22 kB / 0.5364 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.757e-05/0.3758, allocations: 23.22 kB / 0.5364 GB, free: 8.754 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005941/0.3764, allocations: 271.7 kB / 0.5367 GB, free: 8.578 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.157e-05/0.3764, allocations: 4.984 kB / 0.5367 GB, free: 8.574 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.312e-05/0.3764, allocations: 14.31 kB / 0.5367 GB, free: 8.562 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.956e-06/0.3764, allocations: 5.562 kB / 0.5367 GB, free: 8.562 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005399/0.377, allocations: 234 kB / 0.5369 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.3785, allocations: 0.7333 MB / 0.5376 GB, free: 7.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005899/0.3791, allocations: 255.5 kB / 0.5379 GB, free: 7.699 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000282/0.3794, allocations: 135.6 kB / 0.538 GB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.33e-05/0.3794, allocations: 2.719 kB / 0.538 GB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.208e-05/0.3795, allocations: 36.66 kB / 0.538 GB, free: 7.586 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.294e-06/0.3795, allocations: 4 kB / 0.5381 GB, free: 7.582 MB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.003535/0.383, allocations: 1.421 MB / 0.5394 GB, free: 6.543 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.3831, allocations: 55.56 kB / 0.5395 GB, free: 6.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002865/0.3834, allocations: 208.9 kB / 0.5397 GB, free: 6.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.023e-05/0.3835, allocations: 36.83 kB / 0.5397 GB, free: 6.281 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.3836, allocations: 141.5 kB / 0.5399 GB, free: 6.148 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.3837, allocations: 121.4 kB / 0.54 GB, free: 6.043 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.3839, allocations: 70.84 kB / 0.54 GB, free: 5.992 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.3841, allocations: 336.8 kB / 0.5404 GB, free: 5.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002641/0.3843, allocations: 114.2 kB / 0.5405 GB, free: 5.605 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003249/0.3847, allocations: 170.4 kB / 0.5406 GB, free: 5.496 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004745/0.3852, allocations: 232.8 kB / 0.5409 GB, free: 5.363 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3852, allocations: 0 / 0.5409 GB, free: 5.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009795/0.3862, allocations: 435 kB / 0.5413 GB, free: 5.129 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.3862, allocations: 9.375 kB / 0.5413 GB, free: 5.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.3862, allocations: 1.094 kB / 0.5413 GB, free: 5.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005336/0.3868, allocations: 188.6 kB / 0.5415 GB, free: 5.031 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002421/0.387, allocations: 60.27 kB / 0.5415 GB, free: 5.012 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009392/0.388, allocations: 0.7316 MB / 0.5422 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003128/0.3883, allocations: 34.64 kB / 0.5423 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.485e-05/0.3883, allocations: 13.31 kB / 0.5423 GB, free: 4.352 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.0002138/0.3885, allocations: 147.8 kB / 0.5424 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.082e-05/0.3886, allocations: 27.42 kB / 0.5424 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.371e-05/0.3887, allocations: 35.09 kB / 0.5425 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.3887, allocations: 3.75 kB / 0.5425 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.3888, allocations: 3.938 kB / 0.5425 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.3888, allocations: 5.172 kB / 0.5425 GB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001792/0.3906, allocations: 0.9422 MB / 0.5434 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.3906, allocations: 0 / 0.5434 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002408/0.3908, allocations: 50 kB / 0.5435 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004011/0.3912, allocations: 176.2 kB / 0.5436 GB, free: 3.312 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.209e-05/0.3913, allocations: 11.36 kB / 0.5436 GB, free: 3.305 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007547/0.3921, allocations: 0.6965 MB / 0.5443 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3921, allocations: 0.8438 kB / 0.5443 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.3933, allocations: 0.613 MB / 0.5449 GB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001928/0.3935, allocations: 140.8 kB / 0.5451 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.698e-05/0.3936, allocations: 8.344 kB / 0.5451 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002715/0.3939, allocations: 37.8 kB / 0.5451 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.394, allocations: 50.86 kB / 0.5451 GB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.394, allocations: 6.781 kB / 0.5452 GB, free: 2.078 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001806/0.3942, allocations: 158.7 kB / 0.5453 GB, free: 1.965 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3942, allocations: 0 / 0.5453 GB, free: 1.965 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004059/0.3946, allocations: 75.62 kB / 0.5454 GB, free: 1.949 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.00276/0.3974, allocations: 1.393 MB / 0.5467 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008745/0.3983, allocations: 307.6 kB / 0.547 GB, free: 420 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.3983, allocations: 0 / 0.547 GB, free: 420 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003797/0.3987, allocations: 172.3 kB / 0.5472 GB, free: 248 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004874/0.3992, allocations: 50.25 kB / 0.5472 GB, free: 204 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00563/0.4049, allocations: 3.095 MB / 0.5503 GB, free: 12.99 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004274/0.4053, allocations: 0.764 MB / 0.551 GB, free: 12.2 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001412/0.4055, allocations: 26.28 kB / 0.551 GB, free: 12.17 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001493/0.4056, allocations: 75.41 kB / 0.5511 GB, free: 12.1 MB / 414.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4056, allocations: 0 / 0.5511 GB, free: 12.1 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0375/0.4432, allocations: 7.858 MB / 0.5588 GB, free: 4.438 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.97/13.42, allocations: 7.266 kB / 0.5588 GB, free: 4.434 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1)