Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.000918/0.0009179, allocations: 92.72 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009813/0.0009813, allocations: 198.8 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002385/0.0002385, allocations: 4 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1252, allocations: 51.5 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.2583/0.3836, allocations: 42.48 MB / 400.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02972/0.4134, allocations: 10.16 MB / 410.9 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01234/0.4258, allocations: 208.2 kB / 411.1 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008276/0.4341, allocations: 2.103 MB / 413.2 MB, free: 3.355 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02518/0.4594, allocations: 6.156 MB / 419.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003688/0.4631, allocations: 0.4915 MB / 419.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004676/0.4678, allocations: 2.07 MB / 421.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006253/0.474, allocations: 4.212 MB / 426.1 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001791/0.4759, allocations: 0.9614 MB / 427 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001749/0.4776, allocations: 1.281 MB / 428.3 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003794/0.478, allocations: 132 kB / 428.5 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001506/0.4795, allocations: 0.7451 MB / 429.2 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001372/0.4809, allocations: 1.481 MB / 430.7 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008029/0.4817, allocations: 0.7921 MB / 431.5 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005551/0.4873, allocations: 5.222 MB / 436.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.4873, allocations: 0 / 436.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.4873, allocations: 0 / 436.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002029/0.4876, allocations: 0 / 436.7 MB, free: 12.75 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.01628/0.5038, allocations: 4.365 MB / 441.1 MB, free: 8.316 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.484e-05/0.5039, allocations: 16.03 kB / 441.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002115/0.506, allocations: 0.6903 MB / 441.8 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008105/0.5142, allocations: 2.237 MB / 444 MB, free: 5.355 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005851/0.5201, allocations: 2.303 MB / 446.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002121/0.5203, allocations: 225.8 kB / 446.5 MB, free: 2.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001125/0.5214, allocations: 295.8 kB / 446.8 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02003/0.5415, allocations: 10.26 MB / 457.1 MB, free: 7.539 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001229/0.5417, allocations: 43.53 kB / 457.1 MB, free: 7.496 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004408/0.5421, allocations: 143.9 kB / 457.3 MB, free: 7.355 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003187/0.5453, allocations: 1.872 MB / 459.1 MB, free: 5.477 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01848/0.5638, allocations: 9.166 MB / 468.3 MB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05149/0.6153, allocations: 38.32 MB / 0.4947 GB, free: 4.871 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0126/0.628, allocations: 3.617 MB / 0.4983 GB, free: 1.105 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006365/0.6287, allocations: 355.6 kB / 0.4986 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.942e-05/0.6287, allocations: 51.05 kB / 0.4987 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 5.049e-06/0.6287, allocations: 0 / 0.4987 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of matching and sorting (n=133): time 0.04004/0.6688, allocations: 13.04 MB / 0.5114 GB, free: 3.426 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.779e-05/0.6689, allocations: 145.2 kB / 0.5115 GB, free: 3.254 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005348/0.6742, allocations: 4.17 MB / 0.5156 GB, free: 15.05 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000273/0.6745, allocations: 41.7 kB / 0.5156 GB, free: 15.01 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00197/0.6765, allocations: 3.059 MB / 0.5186 GB, free: 11.91 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006549/0.6772, allocations: 0.5442 MB / 0.5192 GB, free: 11.36 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002116/0.6774, allocations: 112 kB / 0.5193 GB, free: 11.25 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000313/0.6777, allocations: 0.5378 MB / 0.5198 GB, free: 10.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002799/0.6805, allocations: 1.943 MB / 0.5217 GB, free: 8.754 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005221/0.6857, allocations: 5.629 MB / 0.5272 GB, free: 1.254 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2317/0.9175, allocations: 3.222 MB / 0.5303 GB, free: 139.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001316/0.9177, allocations: 38.09 kB / 0.5304 GB, free: 139.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=737) (initialization): time 0.01763/0.9353, allocations: 8.052 MB / 0.5382 GB, free: 138 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001252/0.9355, allocations: 61.12 kB / 0.5383 GB, free: 138 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002546/0.9357, allocations: 133.5 kB / 0.5384 GB, free: 138 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002887/0.9386, allocations: 0.926 MB / 0.5393 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004719/0.9434, allocations: 1.322 MB / 0.5406 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00694/0.9503, allocations: 4.966 MB / 0.5455 GB, free: 135.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004867/0.9553, allocations: 310 kB / 0.5458 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001267/0.9565, allocations: 374.5 kB / 0.5461 GB, free: 135 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,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 (698): * Single equations (assignments): 694 * 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.005335/0.9619, allocations: 2.008 MB / 0.5481 GB, free: 134.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008131/0.9627, allocations: 334 kB / 0.5484 GB, free: 134.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004787/0.9675, allocations: 2.772 MB / 0.5511 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-05/0.9676, allocations: 18.69 kB / 0.5511 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.9676, allocations: 3.906 kB / 0.5511 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.9676, allocations: 7.5 kB / 0.5511 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01169/0.9793, allocations: 7.141 MB / 0.5581 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.9794, allocations: 0 / 0.5581 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009362/0.9803, allocations: 210.6 kB / 0.5583 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001973/0.9823, allocations: 0.7132 MB / 0.559 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001159/0.9824, allocations: 39.66 kB / 0.559 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004699/0.9871, allocations: 4.513 MB / 0.5635 GB, free: 126.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.9871, allocations: 0 / 0.5635 GB, free: 126.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006344/0.9935, allocations: 5.262 MB / 0.5686 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001095/0.9946, allocations: 410.4 kB / 0.569 GB, free: 120.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003432/0.995, allocations: 17.72 kB / 0.569 GB, free: 120.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.9961, allocations: 75.91 kB / 0.5691 GB, free: 120.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002318/0.9963, allocations: 85.41 kB / 0.5692 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.754e-05/0.9965, allocations: 47.97 kB / 0.5692 GB, free: 120.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003307/0.9998, allocations: 2.62 MB / 0.5718 GB, free: 118 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.9998, allocations: 0 / 0.5718 GB, free: 118 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004857/1.005, allocations: 0.9224 MB / 0.5727 GB, free: 117.1 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 (101): * Single equations (assignments): 97 * 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.006589/1.011, allocations: 6.237 MB / 0.5787 GB, free: 110.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006334/1.018, allocations: 4.641 MB / 0.5833 GB, free: 106.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/1.018, allocations: 0 / 0.5833 GB, free: 106.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001469/1.019, allocations: 1.351 MB / 0.5846 GB, free: 104.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002023/1.021, allocations: 403.1 kB / 0.585 GB, free: 104.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2788/1.3, allocations: 123.8 MB / 0.7059 GB, free: 154.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005179/1.305, allocations: 3.185 MB / 0.709 GB, free: 153.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004822/1.31, allocations: 1.856 MB / 0.7108 GB, free: 153.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002193/1.312, allocations: 1.783 MB / 0.7126 GB, free: 152.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.092e-06/1.312, allocations: 1.031 kB / 0.7126 GB, free: 152.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1058/1.418, allocations: 73.23 MB / 0.7841 GB, free: 89.1 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001412/1.418, allocations: 238.5 kB / 0.7843 GB, free: 88.85 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.493/4.911, allocations: 0 / 0.7843 GB, free: 88.85 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat does not exist to compare? outputFormat=mat