Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000848/0.0008477, allocations: 98.17 kB / 16.96 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009081/0.0009085, allocations: 184.6 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.659/1.659, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004952/0.0004953, allocations: 8 kB / 280.9 MB, free: 3.648 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1092, allocations: 47.59 MB / 328.5 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.04452/0.1537, allocations: 45.51 MB / 374 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2604/0.4142, allocations: 9.783 MB / 383.8 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01051/0.4248, allocations: 208.7 kB / 384 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009258/0.4341, allocations: 2.341 MB / 386.3 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0234/0.4575, allocations: 6.977 MB / 393.3 MB, free: 8.195 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00328/0.4609, allocations: 0.5129 MB / 393.8 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007298/0.4682, allocations: 4.361 MB / 398.2 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008143/0.4763, allocations: 4.327 MB / 402.5 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003154/0.4795, allocations: 1.229 MB / 403.7 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003514/0.4831, allocations: 1.949 MB / 405.7 MB, free: 4.457 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001238/0.4843, allocations: 141.8 kB / 405.8 MB, free: 4.457 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002764/0.4871, allocations: 0.7757 MB / 406.6 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002662/0.4898, allocations: 1.666 MB / 408.2 MB, free: 3.664 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001923/0.4918, allocations: 0.8378 MB / 409.1 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006527/0.4983, allocations: 5.536 MB / 414.6 MB, free: 452 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.4983, allocations: 0 / 414.6 MB, free: 452 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.4984, allocations: 0 / 414.6 MB, free: 452 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003603/0.4987, allocations: 0.9375 kB / 414.6 MB, free: 452 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.01798/0.5167, allocations: 4.447 MB / 419.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.5168, allocations: 8.031 kB / 419.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0027/0.5195, allocations: 0.7262 MB / 419.8 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007529/0.527, allocations: 1.945 MB / 421.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006309/0.5334, allocations: 2.723 MB / 424.5 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001704/0.5336, allocations: 236.2 kB / 424.7 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000903/0.5345, allocations: 316.4 kB / 425 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02047/0.555, allocations: 10.71 MB / 435.7 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001211/0.5551, allocations: 39.59 kB / 435.8 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004578/0.5556, allocations: 160.1 kB / 435.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003102/0.5587, allocations: 1.983 MB / 437.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01888/0.5776, allocations: 9.543 MB / 447.4 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05684/0.6345, allocations: 39.89 MB / 487.3 MB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01238/0.6469, allocations: 3.834 MB / 491.2 MB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002914/0.6499, allocations: 1.856 MB / 493 MB, free: 9.914 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006506/0.6505, allocations: 356.9 kB / 493.4 MB, free: 9.516 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.321e-05/0.6506, allocations: 53.2 kB / 493.4 MB, free: 9.457 MB / 398.1 MB Notification: Performance of pre-optimization done (n=148): time 3.927e-06/0.6506, allocations: 0 / 493.4 MB, free: 9.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=154): time 0.0492/0.6998, allocations: 13.8 MB / 0.4953 GB, free: 11.55 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.7, allocations: 149.4 kB / 0.4955 GB, free: 11.38 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007318/0.7073, allocations: 4.155 MB / 0.4995 GB, free: 7.199 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004782/0.7078, allocations: 45.7 kB / 0.4996 GB, free: 7.148 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002462/0.7103, allocations: 3.163 MB / 0.5027 GB, free: 4 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009499/0.7113, allocations: 0.6189 MB / 0.5033 GB, free: 3.387 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002763/0.7115, allocations: 116 kB / 0.5034 GB, free: 3.273 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003744/0.7119, allocations: 0.558 MB / 0.5039 GB, free: 2.707 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003276/0.7152, allocations: 2.104 MB / 0.506 GB, free: 0.5977 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005867/0.7211, allocations: 5.932 MB / 0.5118 GB, free: 8.742 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005694/0.7268, allocations: 3.453 MB / 0.5151 GB, free: 5.293 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.465e-05/0.7269, allocations: 44 kB / 0.5152 GB, free: 5.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=775) (initialization): time 0.01965/0.7466, allocations: 8.51 MB / 0.5235 GB, free: 12.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002442/0.7469, allocations: 64 kB / 0.5236 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002861/0.7472, allocations: 136.9 kB / 0.5237 GB, free: 12.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002718/0.7499, allocations: 0.9372 MB / 0.5246 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005844/0.7558, allocations: 1.396 MB / 0.526 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007377/0.7632, allocations: 4.864 MB / 0.5307 GB, free: 5.195 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005425/0.7687, allocations: 331.6 kB / 0.531 GB, free: 4.871 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001324/0.77, allocations: 386.6 kB / 0.5314 GB, free: 4.496 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 620 * Number of states: 0 () * Number of discrete variables: 36 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (736): * Single equations (assignments): 732 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005245/0.7753, allocations: 2.099 MB / 0.5334 GB, free: 2.387 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001059/0.7764, allocations: 355.5 kB / 0.5338 GB, free: 2.035 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2402/1.017, allocations: 3.144 MB / 0.5369 GB, free: 158.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.989e-05/1.017, allocations: 22.88 kB / 0.5369 GB, free: 158.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.569e-05/1.017, allocations: 4.094 kB / 0.5369 GB, free: 158.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.104e-05/1.017, allocations: 8.406 kB / 0.5369 GB, free: 158.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01809/1.035, allocations: 7.827 MB / 0.5445 GB, free: 157.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-05/1.035, allocations: 2.562 kB / 0.5445 GB, free: 157.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001358/1.036, allocations: 271.3 kB / 0.5448 GB, free: 157.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002091/1.038, allocations: 0.7127 MB / 0.5455 GB, free: 157 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001567/1.039, allocations: 36.75 kB / 0.5455 GB, free: 157 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005647/1.044, allocations: 4.415 MB / 0.5498 GB, free: 154.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.309e-06/1.044, allocations: 2.75 kB / 0.5498 GB, free: 154.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008293/1.053, allocations: 5.685 MB / 0.5554 GB, free: 152.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001511/1.054, allocations: 0.6311 MB / 0.556 GB, free: 152.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003873/1.054, allocations: 22.84 kB / 0.556 GB, free: 152.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/1.056, allocations: 89.22 kB / 0.5561 GB, free: 152.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002647/1.056, allocations: 104.7 kB / 0.5562 GB, free: 152.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001138/1.056, allocations: 57.19 kB / 0.5563 GB, free: 152.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003977/1.06, allocations: 2.591 MB / 0.5588 GB, free: 151.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.06, allocations: 0 / 0.5588 GB, free: 151.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005063/1.065, allocations: 0.9612 MB / 0.5597 GB, free: 151.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * 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 (123): * Single equations (assignments): 119 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0077/1.073, allocations: 6.32 MB / 0.5659 GB, free: 148.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007291/1.08, allocations: 5.054 MB / 0.5708 GB, free: 145.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/1.08, allocations: 0 / 0.5708 GB, free: 145.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001798/1.082, allocations: 1.535 MB / 0.5723 GB, free: 144.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002705/1.085, allocations: 425.8 kB / 0.5728 GB, free: 143.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05353/1.138, allocations: 34.99 MB / 0.6069 GB, free: 105.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003019/1.141, allocations: 3.243 MB / 0.6101 GB, free: 101.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004161/1.146, allocations: 1.926 MB / 0.612 GB, free: 99.89 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002043/1.148, allocations: 1.878 MB / 0.6138 GB, free: 98.01 MB / 446.1 MB Notification: Performance of SimCode: time 1.533e-06/1.148, allocations: 4 kB / 0.6138 GB, free: 98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1089/1.257, allocations: 76.15 MB / 0.6882 GB, free: 21.73 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001312/1.257, allocations: 230 kB / 0.6884 GB, free: 21.49 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.843/5.099, allocations: 4 kB / 0.6884 GB, free: 21.49 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat does not exist to compare? outputFormat=mat