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.000889/0.0008889, allocations: 96.56 kB / 16.94 MB, free: 5.984 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.0009234/0.0009235, allocations: 174.4 kB / 17.82 MB, free: 5.652 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.517/1.517, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004622/0.0004622, allocations: 15.28 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1046, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.03818/0.1429, allocations: 42.99 MB / 371.4 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2287/0.3716, allocations: 10.22 MB / 381.6 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008492/0.3802, allocations: 211.7 kB / 381.8 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008593/0.3888, allocations: 2.112 MB / 384 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02157/0.4104, allocations: 6.21 MB / 390.2 MB, free: 8.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003358/0.4138, allocations: 0.5045 MB / 390.7 MB, free: 8.289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005188/0.419, allocations: 2.121 MB / 392.8 MB, free: 8.113 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005832/0.4249, allocations: 4.292 MB / 397.1 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001899/0.4268, allocations: 0.9976 MB / 398.1 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002089/0.4289, allocations: 1.373 MB / 399.5 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000483/0.4294, allocations: 140.7 kB / 399.6 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001609/0.431, allocations: 0.762 MB / 400.4 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001213/0.4323, allocations: 1.555 MB / 401.9 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007714/0.433, allocations: 0.8344 MB / 402.7 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004718/0.4378, allocations: 5.522 MB / 408.3 MB, free: 2.895 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.4378, allocations: 2.438 kB / 408.3 MB, free: 2.895 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4378, allocations: 0 / 408.3 MB, free: 2.895 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002568/0.4381, allocations: 0 / 408.3 MB, free: 2.895 MB / 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.01568/0.4538, allocations: 4.525 MB / 412.8 MB, free: 300 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.4538, allocations: 9.938 kB / 412.8 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00201/0.4558, allocations: 0.7178 MB / 413.5 MB, free: 80 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008048/0.4639, allocations: 2.24 MB / 415.8 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006439/0.4704, allocations: 2.519 MB / 418.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002231/0.4706, allocations: 234.2 kB / 418.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009696/0.4716, allocations: 313 kB / 418.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02129/0.4929, allocations: 10.76 MB / 429.6 MB, free: 5.129 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001269/0.4931, allocations: 45.06 kB / 429.6 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000448/0.4936, allocations: 154.7 kB / 429.8 MB, free: 5.059 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003304/0.4969, allocations: 1.984 MB / 431.8 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01928/0.5162, allocations: 9.621 MB / 441.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05168/0.5679, allocations: 39.96 MB / 481.3 MB, free: 7.348 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01286/0.5808, allocations: 3.867 MB / 485.2 MB, free: 3.348 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005976/0.5814, allocations: 360.8 kB / 485.6 MB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.5815, allocations: 53.72 kB / 485.6 MB, free: 2.891 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 4.608e-06/0.5815, allocations: 2.188 kB / 485.6 MB, free: 2.891 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.04225/0.6237, allocations: 14.09 MB / 499.7 MB, free: 4.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.383e-05/0.6239, allocations: 144 kB / 499.8 MB, free: 4.492 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005731/0.6296, allocations: 4.28 MB / 0.4923 GB, free: 196 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000414/0.6301, allocations: 53.7 kB / 0.4924 GB, free: 136 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002143/0.6322, allocations: 3.17 MB / 0.4955 GB, free: 12.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009113/0.6331, allocations: 0.6102 MB / 0.4961 GB, free: 12.37 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002428/0.6334, allocations: 118.8 kB / 0.4962 GB, free: 12.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003288/0.6337, allocations: 0.5541 MB / 0.4967 GB, free: 11.7 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003062/0.6368, allocations: 2.104 MB / 0.4988 GB, free: 9.586 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005404/0.6422, allocations: 5.919 MB / 0.5045 GB, free: 1.816 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00479/0.647, allocations: 3.453 MB / 0.5079 GB, free: 14.41 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-05/0.6471, allocations: 36 kB / 0.5079 GB, free: 14.38 MB / 430.1 MB Notification: Performance of matching and sorting (n=775) (initialization): time 0.01511/0.6622, allocations: 8.517 MB / 0.5163 GB, free: 5.844 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001684/0.6624, allocations: 68.25 kB / 0.5163 GB, free: 5.777 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002524/0.6627, allocations: 136 kB / 0.5165 GB, free: 5.645 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002552/0.6653, allocations: 0.9409 MB / 0.5174 GB, free: 4.703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004682/0.67, allocations: 1.388 MB / 0.5187 GB, free: 3.312 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006514/0.6765, allocations: 4.971 MB / 0.5236 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004762/0.6813, allocations: 327.6 kB / 0.5239 GB, free: 13.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001049/0.6824, allocations: 384 kB / 0.5243 GB, free: 13.52 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.004522/0.6869, allocations: 2.108 MB / 0.5263 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009017/0.6878, allocations: 347.5 kB / 0.5267 GB, free: 11.06 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006446/0.6943, allocations: 3.156 MB / 0.5297 GB, free: 7.879 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.856e-05/0.6943, allocations: 18.89 kB / 0.5298 GB, free: 7.863 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-05/0.6944, allocations: 4 kB / 0.5298 GB, free: 7.859 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.168e-05/0.6944, allocations: 7.984 kB / 0.5298 GB, free: 7.852 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2182/0.9126, allocations: 7.828 MB / 0.5374 GB, free: 155.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.91e-05/0.9127, allocations: 2.75 kB / 0.5374 GB, free: 155.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001627/0.9144, allocations: 260.6 kB / 0.5377 GB, free: 155.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00252/0.9169, allocations: 0.716 MB / 0.5384 GB, free: 155.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001566/0.9171, allocations: 36.38 kB / 0.5384 GB, free: 155.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005995/0.9231, allocations: 4.526 MB / 0.5428 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.9231, allocations: 2.312 kB / 0.5428 GB, free: 154.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00907/0.9322, allocations: 5.844 MB / 0.5485 GB, free: 152.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001836/0.934, allocations: 0.6428 MB / 0.5492 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003845/0.9344, allocations: 24.45 kB / 0.5492 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001304/0.9357, allocations: 87.05 kB / 0.5493 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000288/0.936, allocations: 98.39 kB / 0.5494 GB, free: 152.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001233/0.9362, allocations: 53.92 kB / 0.5494 GB, free: 152.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004522/0.9407, allocations: 2.691 MB / 0.552 GB, free: 151.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.9407, allocations: 0 / 0.552 GB, free: 151.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005939/0.9466, allocations: 0.9858 MB / 0.553 GB, free: 151.7 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.008366/0.955, allocations: 6.826 MB / 0.5597 GB, free: 148.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006915/0.962, allocations: 5.055 MB / 0.5646 GB, free: 147 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.289e-06/0.962, allocations: 0 / 0.5646 GB, free: 147 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001761/0.9638, allocations: 1.542 MB / 0.5661 GB, free: 146.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002143/0.966, allocations: 402.3 kB / 0.5665 GB, free: 146.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07137/1.037, allocations: 128.5 MB / 0.6919 GB, free: 17.98 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004391/1.042, allocations: 3.33 MB / 0.6952 GB, free: 14.62 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004862/1.047, allocations: 1.93 MB / 0.6971 GB, free: 12.68 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002758/1.049, allocations: 1.882 MB / 0.6989 GB, free: 10.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.904e-06/1.05, allocations: 0 / 0.6989 GB, free: 10.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3011/1.351, allocations: 76.87 MB / 0.774 GB, free: 109.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001616/1.351, allocations: 220.2 kB / 0.7742 GB, free: 109.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.119/5.47, allocations: 3.938 kB / 0.7742 GB, free: 109.7 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