Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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.MovingActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",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.001562/0.001562, allocations: 93.98 kB / 16.3 MB, free: 5.996 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.001777/0.001777, allocations: 182.7 kB / 17.2 MB, free: 5.914 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.516/1.516, allocations: 223.2 MB / 241.1 MB, free: 5.367 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002656/0.0002657, allocations: 7.875 kB / 300.8 MB, free: 6.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1246, allocations: 50.42 MB / 351.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.05297/0.1777, allocations: 56.14 MB / 407.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03524/0.213, allocations: 12.92 MB / 420.3 MB, free: 6.348 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01319/0.2263, allocations: 283.3 kB / 420.6 MB, free: 6.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01115/0.2375, allocations: 2.811 MB / 423.4 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.3277/0.5652, allocations: 8.032 MB / 431.4 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004813/0.5701, allocations: 0.6279 MB / 432 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00644/0.5765, allocations: 2.392 MB / 434.4 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01019/0.5868, allocations: 5.701 MB / 440.1 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003393/0.5902, allocations: 1.158 MB / 441.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00354/0.5938, allocations: 1.518 MB / 442.8 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001008/0.5948, allocations: 167.2 kB / 443 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002354/0.5972, allocations: 0.7914 MB / 443.8 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001799/0.599, allocations: 1.768 MB / 445.5 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001608/0.6006, allocations: 0.9617 MB / 446.5 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007776/0.6084, allocations: 6.345 MB / 452.8 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.6085, allocations: 0 / 452.8 MB, free: 0 / 350.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.6085, allocations: 64 / 452.8 MB, free: 0 / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003789/0.6088, allocations: 0 / 452.8 MB, free: 0 / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1765 * Number of variables: 1765 Notification: Performance of Generate backend data structure: time 0.02183/0.6307, allocations: 5.38 MB / 458.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.506e-05/0.6308, allocations: 10.7 kB / 458.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003243/0.634, allocations: 0.8412 MB / 459.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009228/0.6433, allocations: 2.303 MB / 461.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008642/0.652, allocations: 2.7 MB / 464.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003396/0.6524, allocations: 292.3 kB / 464.4 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00239/0.6548, allocations: 392.9 kB / 464.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02848/0.6833, allocations: 12.46 MB / 477.2 MB, free: 4.07 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000219/0.6835, allocations: 50.47 kB / 477.2 MB, free: 4.047 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001087/0.6846, allocations: 187.5 kB / 477.4 MB, free: 3.992 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004363/0.689, allocations: 2.247 MB / 479.7 MB, free: 2.098 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0251/0.7141, allocations: 11.41 MB / 491.1 MB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07401/0.7882, allocations: 46.98 MB / 0.5255 GB, free: 2.656 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01796/0.8062, allocations: 5.471 MB / 0.5308 GB, free: 14.2 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007777/0.8071, allocations: 385.5 kB / 0.5312 GB, free: 13.8 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.674e-05/0.8071, allocations: 53.81 kB / 0.5312 GB, free: 13.75 MB / 430.1 MB Notification: Performance of pre-optimization done (n=200): time 4.318e-06/0.8072, allocations: 1.531 kB / 0.5312 GB, free: 13.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.08107/0.8882, allocations: 27.51 MB / 0.5581 GB, free: 3.637 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.8884, allocations: 154.5 kB / 0.5582 GB, free: 3.457 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009144/0.8975, allocations: 4.611 MB / 0.5627 GB, free: 14.83 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008468/0.8984, allocations: 57.7 kB / 0.5628 GB, free: 14.77 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002707/0.9012, allocations: 3.465 MB / 0.5662 GB, free: 11.32 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001544/0.9027, allocations: 0.8795 MB / 0.567 GB, free: 10.45 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008371/0.9036, allocations: 132 kB / 0.5672 GB, free: 10.32 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004381/0.904, allocations: 0.5871 MB / 0.5677 GB, free: 9.727 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00512/0.9091, allocations: 3.257 MB / 0.5709 GB, free: 6.465 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007966/0.9171, allocations: 7.189 MB / 0.5779 GB, free: 13.39 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007712/0.9249, allocations: 4.716 MB / 0.5825 GB, free: 8.801 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001581/0.9251, allocations: 40 kB / 0.5826 GB, free: 8.762 MB / 478.1 MB Notification: Performance of matching and sorting (n=872) (initialization): time 0.2458/1.171, allocations: 11.36 MB / 0.5937 GB, free: 164.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001071/1.171, allocations: 65.34 kB / 0.5937 GB, free: 164.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001421/1.171, allocations: 139.9 kB / 0.5939 GB, free: 164.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00292/1.174, allocations: 1.147 MB / 0.595 GB, free: 164.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007007/1.181, allocations: 1.723 MB / 0.5967 GB, free: 164.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008378/1.189, allocations: 6.107 MB / 0.6026 GB, free: 163.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005906/1.195, allocations: 411 kB / 0.603 GB, free: 163.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009553/1.196, allocations: 455.8 kB / 0.6035 GB, free: 163.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[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 (833): * Single equations (assignments): 829 * 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.004356/1.201, allocations: 2.349 MB / 0.6058 GB, free: 163 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007882/1.202, allocations: 403 kB / 0.6061 GB, free: 163 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008667/1.21, allocations: 6.135 MB / 0.6121 GB, free: 162.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.922e-05/1.21, allocations: 25.16 kB / 0.6122 GB, free: 162.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/1.21, allocations: 3.969 kB / 0.6122 GB, free: 162.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.751e-05/1.21, allocations: 14.31 kB / 0.6122 GB, free: 162.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01805/1.228, allocations: 12.85 MB / 0.6247 GB, free: 158.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-05/1.228, allocations: 4.188 kB / 0.6247 GB, free: 158.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002402/1.231, allocations: 0.543 MB / 0.6253 GB, free: 158.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002214/1.233, allocations: 0.9483 MB / 0.6262 GB, free: 158.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002606/1.233, allocations: 93.81 kB / 0.6263 GB, free: 158.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005929/1.239, allocations: 5.825 MB / 0.632 GB, free: 155 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/1.239, allocations: 3.312 kB / 0.632 GB, free: 155 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01258/1.252, allocations: 10.79 MB / 0.6425 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002594/1.255, allocations: 0.9006 MB / 0.6434 GB, free: 143.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007479/1.255, allocations: 44 kB / 0.6434 GB, free: 143.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002159/1.257, allocations: 167 kB / 0.6436 GB, free: 143.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000423/1.258, allocations: 184.4 kB / 0.6438 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002197/1.258, allocations: 108.5 kB / 0.6439 GB, free: 143.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004067/1.262, allocations: 2.901 MB / 0.6467 GB, free: 140.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.81e-07/1.262, allocations: 0 / 0.6467 GB, free: 140.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006411/1.269, allocations: 1.234 MB / 0.6479 GB, free: 139.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,position1.phi,position1.w,position2.phi,position2.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 (205): * Single equations (assignments): 201 * 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 Backend phase and start with SimCode phase: time 0.01279/1.281, allocations: 12.27 MB / 0.6599 GB, free: 126.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01065/1.292, allocations: 7.68 MB / 0.6674 GB, free: 119.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.283e-06/1.292, allocations: 0 / 0.6674 GB, free: 119.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003414/1.296, allocations: 2.977 MB / 0.6703 GB, free: 116.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002589/1.298, allocations: 467.3 kB / 0.6707 GB, free: 116.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2793/1.577, allocations: 141.8 MB / 0.8092 GB, free: 156.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003448/1.581, allocations: 3.766 MB / 0.8129 GB, free: 155.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005302/1.586, allocations: 2.301 MB / 0.8151 GB, free: 155.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003122/1.589, allocations: 2.348 MB / 0.8174 GB, free: 153.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.462e-06/1.589, allocations: 3.469 kB / 0.8174 GB, free: 153.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1387/1.728, allocations: 100.5 MB / 0.9155 GB, free: 54.45 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001409/1.728, allocations: 235.4 kB / 0.9158 GB, free: 54.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.638/6.367, allocations: 4 kB / 0.9158 GB, free: 54.2 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat does not exist to compare? outputFormat=mat