Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_4_0_0_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.001019/0.001019, allocations: 93.97 kB / 16.31 MB, free: 5.578 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.001332/0.001332, allocations: 177.8 kB / 17.2 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 223.2 MB / 241.2 MB, free: 14.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002663/0.0002663, allocations: 7.062 kB / 300.9 MB, free: 6.098 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1124, allocations: 50.41 MB / 351.3 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.2802/0.3927, allocations: 44.95 MB / 396.3 MB, free: 1.078 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02658/0.4194, allocations: 9.719 MB / 406 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01219/0.4316, allocations: 209.2 kB / 406.2 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008427/0.4401, allocations: 2.329 MB / 408.5 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02118/0.4613, allocations: 6.908 MB / 415.4 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003675/0.465, allocations: 0.505 MB / 415.9 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006737/0.4718, allocations: 4.172 MB / 420.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007545/0.4793, allocations: 4.253 MB / 424.4 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002792/0.4822, allocations: 1.16 MB / 425.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003357/0.4856, allocations: 1.838 MB / 427.4 MB, free: 8.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009934/0.4866, allocations: 135.9 kB / 427.5 MB, free: 8.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002609/0.4892, allocations: 0.784 MB / 428.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002663/0.4919, allocations: 1.586 MB / 429.9 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001845/0.4938, allocations: 0.7921 MB / 430.7 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007103/0.5009, allocations: 5.233 MB / 435.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.5009, allocations: 0 / 435.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.501, allocations: 0 / 435.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002928/0.5013, allocations: 0 / 435.9 MB, free: 15.71 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.01584/0.5171, allocations: 4.271 MB / 440.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.5172, allocations: 11.97 kB / 440.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002441/0.5196, allocations: 0.6903 MB / 440.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007029/0.5267, allocations: 1.913 MB / 442.8 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005919/0.5326, allocations: 2.491 MB / 445.3 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002528/0.5329, allocations: 233.7 kB / 445.5 MB, free: 5.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001485/0.5344, allocations: 303.8 kB / 445.8 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02141/0.5559, allocations: 10.21 MB / 456 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002273/0.5561, allocations: 39.69 kB / 456.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001215/0.5574, allocations: 139.9 kB / 456.2 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003379/0.5608, allocations: 1.868 MB / 458.1 MB, free: 8.723 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01924/0.58, allocations: 9.108 MB / 467.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05195/0.632, allocations: 38.26 MB / 0.4936 GB, free: 8.242 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01169/0.6437, allocations: 3.587 MB / 0.4971 GB, free: 4.504 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002349/0.6461, allocations: 1.676 MB / 0.4987 GB, free: 2.816 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005565/0.6467, allocations: 351.8 kB / 0.4991 GB, free: 2.418 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.449e-05/0.6467, allocations: 47.06 kB / 0.4991 GB, free: 2.363 MB / 414.1 MB Notification: Performance of pre-optimization done (n=127): time 4.889e-06/0.6468, allocations: 0 / 0.4991 GB, free: 2.363 MB / 414.1 MB Notification: Performance of matching and sorting (n=133): time 0.03759/0.6844, allocations: 12.73 MB / 0.5115 GB, free: 5.508 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.163e-05/0.6845, allocations: 141.2 kB / 0.5117 GB, free: 5.34 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006104/0.6906, allocations: 4.053 MB / 0.5156 GB, free: 1.258 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002897/0.6909, allocations: 41.7 kB / 0.5157 GB, free: 1.211 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002323/0.6933, allocations: 3.047 MB / 0.5186 GB, free: 14.12 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007889/0.694, allocations: 0.5481 MB / 0.5192 GB, free: 13.56 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002191/0.6943, allocations: 108 kB / 0.5193 GB, free: 13.46 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003497/0.6946, allocations: 0.5417 MB / 0.5198 GB, free: 12.91 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002927/0.6976, allocations: 1.947 MB / 0.5217 GB, free: 10.95 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005152/0.7027, allocations: 5.641 MB / 0.5272 GB, free: 3.441 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004323/0.7071, allocations: 3.246 MB / 0.5304 GB, free: 200 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.033e-05/0.7071, allocations: 39.78 kB / 0.5304 GB, free: 164 kB / 446.1 MB Notification: Performance of matching and sorting (n=737) (initialization): time 0.2548/0.962, allocations: 8.034 MB / 0.5383 GB, free: 146.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001367/0.9621, allocations: 62 kB / 0.5383 GB, free: 146.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002775/0.9624, allocations: 131.9 kB / 0.5385 GB, free: 146.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003035/0.9655, allocations: 0.929 MB / 0.5394 GB, free: 146 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005121/0.9706, allocations: 1.318 MB / 0.5407 GB, free: 145.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007948/0.9786, allocations: 4.856 MB / 0.5454 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004968/0.9836, allocations: 319 kB / 0.5457 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009783/0.9846, allocations: 368.2 kB / 0.5461 GB, free: 143.2 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.003607/0.9882, allocations: 2.006 MB / 0.548 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006358/0.9889, allocations: 341.4 kB / 0.5483 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004615/0.9935, allocations: 2.77 MB / 0.551 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.303e-05/0.9935, allocations: 15.56 kB / 0.5511 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.9935, allocations: 3.906 kB / 0.5511 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.9935, allocations: 10.81 kB / 0.5511 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/1.004, allocations: 7.131 MB / 0.558 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/1.004, allocations: 4.188 kB / 0.558 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008987/1.005, allocations: 216.6 kB / 0.5582 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001768/1.007, allocations: 0.7201 MB / 0.5589 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001071/1.007, allocations: 35.8 kB / 0.559 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004833/1.012, allocations: 4.411 MB / 0.5633 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/1.012, allocations: 3.938 kB / 0.5633 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006397/1.018, allocations: 5.093 MB / 0.5683 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001012/1.019, allocations: 402.9 kB / 0.5687 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003055/1.019, allocations: 32.52 kB / 0.5687 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/1.02, allocations: 72.61 kB / 0.5688 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002343/1.021, allocations: 88.53 kB / 0.5688 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/1.021, allocations: 47.52 kB / 0.5689 GB, free: 129.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003347/1.024, allocations: 2.53 MB / 0.5714 GB, free: 126.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.024, allocations: 0 / 0.5714 GB, free: 126.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004965/1.029, allocations: 0.9017 MB / 0.5722 GB, free: 125.9 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.006974/1.036, allocations: 5.735 MB / 0.5778 GB, free: 120.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007343/1.043, allocations: 4.639 MB / 0.5824 GB, free: 115.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/1.044, allocations: 0 / 0.5824 GB, free: 115.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001641/1.045, allocations: 1.351 MB / 0.5837 GB, free: 114.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002494/1.048, allocations: 423 kB / 0.5841 GB, free: 113.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.049/1.097, allocations: 32.93 MB / 0.6162 GB, free: 77.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00307/1.1, allocations: 3.101 MB / 0.6193 GB, free: 74.05 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004183/1.104, allocations: 1.849 MB / 0.6211 GB, free: 72.19 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002239/1.106, allocations: 1.784 MB / 0.6228 GB, free: 70.41 MB / 446.1 MB Notification: Performance of SimCode: time 1.373e-06/1.106, allocations: 0 / 0.6228 GB, free: 70.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3319/1.438, allocations: 72.64 MB / 0.6938 GB, free: 124 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002644/1.439, allocations: 235.5 kB / 0.694 GB, free: 123.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.955/5.394, allocations: 0 / 0.694 GB, free: 123.7 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat does not exist to compare? outputFormat=mat