Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",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.00104/0.00104, allocations: 98.02 kB / 16.94 MB, free: 6.445 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.00102/0.00102, allocations: 184.6 kB / 17.83 MB, free: 6.039 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.442/1.442, 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.0004482/0.0004483, allocations: 15.44 kB / 280.8 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09678/0.09724, allocations: 47.58 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.04527/0.1426, allocations: 49.64 MB / 378.1 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.239/0.3816, allocations: 11.67 MB / 389.7 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01031/0.3919, allocations: 243.5 kB / 390 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008046/0.4, allocations: 2.471 MB / 392.4 MB, free: 8.215 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02782/0.4278, allocations: 7.173 MB / 399.6 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003901/0.4318, allocations: 0.6125 MB / 400.2 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01977/0.4515, allocations: 14.25 MB / 414.5 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005785/0.4574, allocations: 5.086 MB / 419.6 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00184/0.4593, allocations: 1.129 MB / 420.7 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001967/0.4612, allocations: 1.493 MB / 422.2 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000537/0.4618, allocations: 164 kB / 422.3 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001842/0.4636, allocations: 0.9269 MB / 423.3 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001585/0.4652, allocations: 1.792 MB / 425.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009205/0.4662, allocations: 0.9462 MB / 426 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00633/0.4725, allocations: 6.391 MB / 432.4 MB, free: 6.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.4726, allocations: 4 kB / 432.4 MB, free: 6.066 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4726, allocations: 0 / 432.4 MB, free: 6.066 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002049/0.4728, allocations: 0 / 432.4 MB, free: 6.066 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: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.009499/0.4823, allocations: 4.813 MB / 437.2 MB, free: 1.625 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.4823, allocations: 8.031 kB / 437.2 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001313/0.4837, allocations: 0.8162 MB / 438 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02481/0.5085, allocations: 5.128 MB / 443.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007778/0.5164, allocations: 3.088 MB / 446.3 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002002/0.5166, allocations: 269 kB / 446.5 MB, free: 9.832 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008151/0.5174, allocations: 352.4 kB / 446.9 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02061/0.538, allocations: 11.71 MB / 458.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001365/0.5382, allocations: 51.47 kB / 458.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004736/0.5387, allocations: 165.9 kB / 458.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003802/0.5425, allocations: 2.337 MB / 461.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02079/0.5633, allocations: 9.985 MB / 471.1 MB, free: 3.219 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05977/0.6231, allocations: 44.42 MB / 0.5035 GB, free: 5.934 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01289/0.636, allocations: 5.424 MB / 0.5087 GB, free: 368 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01414/0.6502, allocations: 8.039 MB / 0.5166 GB, free: 8.188 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.8e-05/0.6503, allocations: 59.81 kB / 0.5167 GB, free: 8.121 MB / 430.1 MB Notification: Performance of pre-optimization done (n=216): time 6.011e-06/0.6503, allocations: 0 / 0.5167 GB, free: 8.121 MB / 430.1 MB Notification: Performance of matching and sorting (n=237): time 0.05087/0.7012, allocations: 20.71 MB / 0.5369 GB, free: 3.219 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/0.7014, allocations: 180.2 kB / 0.537 GB, free: 3.008 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2212/0.9226, allocations: 4.874 MB / 0.5418 GB, free: 162.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000628/0.9233, allocations: 62.3 kB / 0.5419 GB, free: 162 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002331/0.9256, allocations: 3.413 MB / 0.5452 GB, free: 160.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001072/0.9267, allocations: 0.8867 MB / 0.5461 GB, free: 160.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003055/0.927, allocations: 137.6 kB / 0.5462 GB, free: 160.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003664/0.9274, allocations: 0.5868 MB / 0.5468 GB, free: 159.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004489/0.9319, allocations: 2.572 MB / 0.5493 GB, free: 159.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006402/0.9383, allocations: 6.444 MB / 0.5556 GB, free: 153.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006145/0.9445, allocations: 3.995 MB / 0.5595 GB, free: 151.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000102/0.9446, allocations: 39.25 kB / 0.5595 GB, free: 151.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=874) (initialization): time 0.0143/0.9589, allocations: 9.638 MB / 0.5689 GB, free: 148.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.154e-05/0.959, allocations: 65.61 kB / 0.569 GB, free: 148.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001764/0.9592, allocations: 139.1 kB / 0.5691 GB, free: 148.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00201/0.9612, allocations: 0.9612 MB / 0.5701 GB, free: 147.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00506/0.9663, allocations: 1.581 MB / 0.5716 GB, free: 147.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006712/0.973, allocations: 6.273 MB / 0.5777 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00867/0.9818, allocations: 374.7 kB / 0.5781 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002301/0.9842, allocations: 400.1 kB / 0.5785 GB, free: 142.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 42 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (816): * Single equations (assignments): 810 * Array equations: 5 * 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 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007202/0.9914, allocations: 2.38 MB / 0.5808 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001365/0.9928, allocations: 414.6 kB / 0.5812 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006891/0.9997, allocations: 4.401 MB / 0.5855 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.475e-05/0.9998, allocations: 26.25 kB / 0.5855 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.9998, allocations: 4 kB / 0.5855 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.237e-05/0.9998, allocations: 15.95 kB / 0.5855 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01644/1.016, allocations: 10.54 MB / 0.5958 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.802e-05/1.016, allocations: 4 kB / 0.5958 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001851/1.018, allocations: 423.3 kB / 0.5962 GB, free: 125.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001738/1.02, allocations: 0.7657 MB / 0.597 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002551/1.02, allocations: 44.88 kB / 0.597 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005985/1.026, allocations: 5.8 MB / 0.6027 GB, free: 118.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/1.026, allocations: 13.42 kB / 0.6027 GB, free: 118.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009787/1.036, allocations: 8.474 MB / 0.611 GB, free: 109.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003169/1.039, allocations: 0.8352 MB / 0.6118 GB, free: 108.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001771/1.041, allocations: 44 kB / 0.6118 GB, free: 108.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002225/1.043, allocations: 141.3 kB / 0.612 GB, free: 108.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003209/1.044, allocations: 141.7 kB / 0.6121 GB, free: 108.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001497/1.044, allocations: 71.98 kB / 0.6122 GB, free: 108.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004146/1.048, allocations: 3.129 MB / 0.6152 GB, free: 105.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.048, allocations: 0 / 0.6152 GB, free: 105.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006232/1.054, allocations: 1.182 MB / 0.6164 GB, free: 104 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (198): * Single equations (assignments): 194 * 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 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01001/1.064, allocations: 10.29 MB / 0.6264 GB, free: 93.53 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009224/1.074, allocations: 6.249 MB / 0.6325 GB, free: 87.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.159e-05/1.074, allocations: 0 / 0.6325 GB, free: 87.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003367/1.077, allocations: 2.314 MB / 0.6348 GB, free: 84.97 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003803/1.081, allocations: 488.2 kB / 0.6353 GB, free: 84.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2197/1.301, allocations: 117.5 MB / 0.75 GB, free: 114.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005183/1.306, allocations: 3.772 MB / 0.7536 GB, free: 114.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006283/1.312, allocations: 2.223 MB / 0.7558 GB, free: 114.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004005/1.316, allocations: 2.219 MB / 0.758 GB, free: 114.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.883e-06/1.316, allocations: 0 / 0.758 GB, free: 114.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1172/1.433, allocations: 90.19 MB / 0.8461 GB, free: 36.11 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001318/1.434, allocations: 230.8 kB / 0.8463 GB, free: 35.86 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.867/5.3, allocations: 0 / 0.8463 GB, free: 35.86 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat does not exist to compare? outputFormat=mat