Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.MovingActuatedDrive,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_3_2_3_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.000987/0.000987, allocations: 92.56 kB / 16.95 MB, free: 6.441 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.001123/0.001123, allocations: 181.2 kB / 17.84 MB, free: 6.008 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.636/1.636, allocations: 205.4 MB / 224 MB, free: 13.07 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.0004515/0.0004518, allocations: 8.938 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1035, allocations: 47.58 MB / 328.5 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.2807/0.3843, allocations: 60.06 MB / 388.5 MB, free: 8.637 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03035/0.4147, allocations: 12.44 MB / 400.9 MB, free: 7.969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01592/0.4307, allocations: 278.9 kB / 401.2 MB, free: 7.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01145/0.4422, allocations: 3.115 MB / 404.3 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02967/0.4719, allocations: 9.112 MB / 413.4 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004244/0.4762, allocations: 0.6187 MB / 414.1 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007105/0.4833, allocations: 5.191 MB / 419.3 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008683/0.492, allocations: 5.838 MB / 425.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003225/0.4953, allocations: 1.469 MB / 426.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004415/0.4997, allocations: 2.303 MB / 428.9 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009988/0.5007, allocations: 179.9 kB / 429 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00265/0.5034, allocations: 0.8078 MB / 429.9 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002432/0.5058, allocations: 1.99 MB / 431.8 MB, free: 9.391 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001913/0.5078, allocations: 1.004 MB / 432.8 MB, free: 8.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008779/0.5166, allocations: 6.647 MB / 439.5 MB, free: 3.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.5166, allocations: 0 / 439.5 MB, free: 3.062 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.174e-06/0.5166, allocations: 0 / 439.5 MB, free: 3.062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003156/0.5169, allocations: 3.938 kB / 439.5 MB, free: 3.059 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1851 * Number of variables: 1851 Notification: Performance of Generate backend data structure: time 0.02014/0.5371, allocations: 5.364 MB / 444.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/0.5372, allocations: 12.03 kB / 444.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003255/0.5404, allocations: 0.8746 MB / 445.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007653/0.5481, allocations: 2.052 MB / 447.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006839/0.555, allocations: 3.138 MB / 450.9 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002792/0.5553, allocations: 296.6 kB / 451.2 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001677/0.557, allocations: 406.9 kB / 451.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02738/0.5844, allocations: 12.86 MB / 464.5 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001735/0.5846, allocations: 51.53 kB / 464.5 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006693/0.5853, allocations: 187.9 kB / 464.7 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004241/0.5895, allocations: 2.372 MB / 467.1 MB, free: 8.082 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02512/0.6147, allocations: 11.72 MB / 478.8 MB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0748/0.6895, allocations: 48.6 MB / 0.5151 GB, free: 10.82 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01642/0.706, allocations: 5.58 MB / 0.5205 GB, free: 5.094 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00492/0.711, allocations: 3.485 MB / 0.5239 GB, free: 1.602 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007726/0.7118, allocations: 385.6 kB / 0.5243 GB, free: 1.18 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.625e-05/0.7119, allocations: 55.88 kB / 0.5243 GB, free: 1.117 MB / 430.1 MB Notification: Performance of pre-optimization done (n=221): time 5.911e-06/0.7119, allocations: 0 / 0.5243 GB, free: 1.117 MB / 430.1 MB Notification: Performance of matching and sorting (n=252): time 0.3391/1.051, allocations: 27.98 MB / 0.5517 GB, free: 106.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.121e-05/1.051, allocations: 156.2 kB / 0.5518 GB, free: 106 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008272/1.059, allocations: 4.594 MB / 0.5563 GB, free: 105.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008028/1.06, allocations: 63.7 kB / 0.5563 GB, free: 105.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002557/1.063, allocations: 3.582 MB / 0.5598 GB, free: 103.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001437/1.064, allocations: 0.9549 MB / 0.5608 GB, free: 102.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000383/1.065, allocations: 138.8 kB / 0.5609 GB, free: 102.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003241/1.065, allocations: 0.6003 MB / 0.5615 GB, free: 102.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004825/1.07, allocations: 3.428 MB / 0.5648 GB, free: 102.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007031/1.077, allocations: 7.491 MB / 0.5722 GB, free: 97.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007291/1.084, allocations: 4.941 MB / 0.577 GB, free: 97.19 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.624e-05/1.084, allocations: 45.78 kB / 0.577 GB, free: 97.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.02033/1.105, allocations: 11.82 MB / 0.5886 GB, free: 95.67 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002102/1.105, allocations: 64.22 kB / 0.5886 GB, free: 95.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002558/1.105, allocations: 148 kB / 0.5888 GB, free: 95.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002644/1.108, allocations: 1.145 MB / 0.5899 GB, free: 94.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006476/1.114, allocations: 1.8 MB / 0.5916 GB, free: 93.49 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006832/1.121, allocations: 6.02 MB / 0.5975 GB, free: 88.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006397/1.128, allocations: 426 kB / 0.5979 GB, free: 88.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001505/1.129, allocations: 472.6 kB / 0.5984 GB, free: 87.63 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 651 * Number of states: 0 () * Number of discrete variables: 42 (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 (871): * Single equations (assignments): 867 * 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.005859/1.135, allocations: 2.446 MB / 0.6008 GB, free: 85.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001445/1.136, allocations: 422.5 kB / 0.6012 GB, free: 84.91 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01112/1.148, allocations: 6.48 MB / 0.6075 GB, free: 78.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-05/1.148, allocations: 30.58 kB / 0.6075 GB, free: 78.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.231e-05/1.148, allocations: 4 kB / 0.6075 GB, free: 78.38 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.104e-05/1.148, allocations: 17.05 kB / 0.6076 GB, free: 78.37 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02524/1.173, allocations: 13.62 MB / 0.6209 GB, free: 64.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.111e-05/1.173, allocations: 4 kB / 0.6209 GB, free: 64.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002778/1.176, allocations: 0.5775 MB / 0.6214 GB, free: 64.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002137/1.178, allocations: 0.9536 MB / 0.6224 GB, free: 63.22 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004442/1.179, allocations: 87.89 kB / 0.6224 GB, free: 63.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006149/1.185, allocations: 5.723 MB / 0.628 GB, free: 57.29 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.513e-06/1.185, allocations: 4 kB / 0.628 GB, free: 57.29 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01466/1.199, allocations: 10.92 MB / 0.6387 GB, free: 46.27 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002678/1.202, allocations: 0.9424 MB / 0.6396 GB, free: 45.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001424/1.204, allocations: 47.94 kB / 0.6397 GB, free: 45.26 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002888/1.206, allocations: 176.9 kB / 0.6398 GB, free: 45.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000562/1.207, allocations: 192.5 kB / 0.64 GB, free: 44.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003687/1.207, allocations: 107.9 kB / 0.6401 GB, free: 44.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00591/1.213, allocations: 2.877 MB / 0.6429 GB, free: 41.92 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.61e-07/1.213, allocations: 0 / 0.6429 GB, free: 41.92 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008693/1.222, allocations: 1.268 MB / 0.6442 GB, free: 40.66 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (225): * Single equations (assignments): 221 * 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.01552/1.238, allocations: 11.6 MB / 0.6555 GB, free: 28.99 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01151/1.249, allocations: 8.093 MB / 0.6634 GB, free: 21.31 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/1.249, allocations: 4 kB / 0.6634 GB, free: 21.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004091/1.253, allocations: 3.163 MB / 0.6665 GB, free: 18.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004489/1.258, allocations: 0.4908 MB / 0.667 GB, free: 17.69 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2809/1.539, allocations: 48.24 MB / 0.7141 GB, free: 182.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005829/1.545, allocations: 3.798 MB / 0.7178 GB, free: 181.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006591/1.551, allocations: 2.399 MB / 0.7201 GB, free: 181.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003773/1.555, allocations: 2.447 MB / 0.7225 GB, free: 181.6 MB / 478.1 MB Notification: Performance of SimCode: time 3.757e-06/1.555, allocations: 1.375 kB / 0.7225 GB, free: 181.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1458/1.701, allocations: 103.2 MB / 0.8233 GB, free: 91.84 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001859/1.701, allocations: 237.5 kB / 0.8235 GB, free: 91.61 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.914/6.615, allocations: 3.828 kB / 0.8235 GB, free: 91.61 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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.MovingActuatedDrive_res.mat does not exist to compare? outputFormat=mat