Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.484/1.484, allocations: 221.4 MB / 235.5 MB, free: 2.914 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000906/0.0009059, allocations: 102 kB / 286.5 MB, free: 216 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.095e-05/3.106e-05, allocations: 0 / 343.9 MB, free: 4.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1111, allocations: 50.4 MB / 394.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4063/0.5175, allocations: 115 MB / 0.4974 GB, free: 4.43 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002824/0.5178, allocations: 83.95 kB / 0.4975 GB, free: 4.348 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6292/1.147, allocations: 128 MB / 0.6224 GB, free: 83.47 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.943e-06/1.147, allocations: 0 / 0.6224 GB, free: 83.47 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004513/1.148, allocations: 140 kB / 0.6225 GB, free: 83.33 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2341 * Number of variables: 2341 Notification: Performance of Generate backend data structure: time 0.02721/1.175, allocations: 7.044 MB / 0.6294 GB, free: 76.21 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.122e-05/1.175, allocations: 11.97 kB / 0.6294 GB, free: 76.2 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006238/1.181, allocations: 1.186 MB / 0.6306 GB, free: 75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01439/1.195, allocations: 2.757 MB / 0.6333 GB, free: 72.23 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01961/1.215, allocations: 7.168 MB / 0.6403 GB, free: 64.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006057/1.216, allocations: 0.5136 MB / 0.6408 GB, free: 64.46 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00459/1.22, allocations: 0.6833 MB / 0.6415 GB, free: 63.78 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04368/1.264, allocations: 17.11 MB / 0.6582 GB, free: 45.37 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005875/1.265, allocations: 83.27 kB / 0.6582 GB, free: 45.29 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003561/1.268, allocations: 323.9 kB / 0.6585 GB, free: 44.97 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00246/1.271, allocations: 1.491 MB / 0.66 GB, free: 43.48 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03267/1.304, allocations: 14.28 MB / 0.674 GB, free: 29.17 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4481/1.752, allocations: 72.86 MB / 0.7451 GB, free: 48.3 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02573/1.777, allocations: 7.744 MB / 0.7527 GB, free: 47.61 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006786/1.784, allocations: 3.929 MB / 0.7565 GB, free: 47.57 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03189/1.816, allocations: 16.5 MB / 0.7726 GB, free: 43.83 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.941e-05/1.816, allocations: 59.56 kB / 0.7727 GB, free: 43.79 MB / 442.7 MB Notification: Performance of pre-optimization done (n=266): time 8.616e-06/1.816, allocations: 0 / 0.7727 GB, free: 43.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=340): time 0.1103/1.927, allocations: 38.77 MB / 0.8105 GB, free: 33.55 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02028/1.947, allocations: 14.85 MB / 0.825 GB, free: 23.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009621/1.957, allocations: 4.948 MB / 0.8299 GB, free: 19.44 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001127/1.958, allocations: 73.7 kB / 0.8299 GB, free: 19.36 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003682/1.962, allocations: 4.678 MB / 0.8345 GB, free: 15.17 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00316/1.965, allocations: 1.269 MB / 0.8357 GB, free: 14.05 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001713/1.967, allocations: 180 kB / 0.8359 GB, free: 13.88 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007415/1.967, allocations: 0.6916 MB / 0.8366 GB, free: 13.29 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006709/1.974, allocations: 4.006 MB / 0.8405 GB, free: 9.684 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01067/1.985, allocations: 9.143 MB / 0.8494 GB, free: 14.77 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01237/1.997, allocations: 6.001 MB / 0.8553 GB, free: 9.797 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001785/1.997, allocations: 52 kB / 0.8553 GB, free: 9.746 MB / 458.7 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.04561/2.043, allocations: 17.69 MB / 0.8726 GB, free: 10.33 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002694/2.043, allocations: 84 kB / 0.8727 GB, free: 10.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003621/2.044, allocations: 180 kB / 0.8729 GB, free: 10.07 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01749/2.061, allocations: 4.973 MB / 0.8777 GB, free: 5.113 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007565/2.069, allocations: 1.973 MB / 0.8797 GB, free: 3.137 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4007/2.47, allocations: 37.05 MB / 0.9158 GB, free: 121 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01043/2.48, allocations: 0.5378 MB / 0.9164 GB, free: 121 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003062/2.483, allocations: 0.5516 MB / 0.9169 GB, free: 121 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 62 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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],springOfConstraint.color[3],springOfConstraint.color[2],springOfConstraint.color[1],springOfConstraint.massColor[3],springOfConstraint.massColor[2],springOfConstraint.massColor[1],springOfJoint.color[3],springOfJoint.color[2],springOfJoint.color[1],springOfJoint.massColor[3],springOfJoint.massColor[2],springOfJoint.massColor[1],bodyOfConstraint.color[3],bodyOfConstraint.color[2],bodyOfConstraint.color[1],bodyOfConstraint.body.sphereColor[3],bodyOfConstraint.body.sphereColor[2],bodyOfConstraint.body.sphereColor[1],bodyOfConstraint.frameTranslation.color[3],bodyOfConstraint.frameTranslation.color[2],bodyOfConstraint.frameTranslation.color[1],bodyOfJoint.color[3],bodyOfJoint.color[2],bodyOfJoint.color[1],bodyOfJoint.body.sphereColor[3],bodyOfJoint.body.sphereColor[2],bodyOfJoint.body.sphereColor[1],bodyOfJoint.frameTranslation.color[3],bodyOfJoint.frameTranslation.color[2],bodyOfJoint.frameTranslation.color[1],sensorConstraintRelative.arrow.arrowLine.twoHeadedArrow,sensorConstraintRelative.arrow.headAtOrigin,sensorConstraintRelative.arrowColor[3],sensorConstraintRelative.arrowColor[2],sensorConstraintRelative.arrowColor[1],constraint.sphereColor[3],constraint.sphereColor[2],constraint.sphereColor[1],joint.cylinderColor[3],joint.cylinderColor[2],joint.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1042): * Single equations (assignments): 1031 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(3,100.0%) 38,(2,100.0%) 23,(2,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.003927/2.487, allocations: 0.7867 MB / 0.9177 GB, free: 120.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002231/2.489, allocations: 0.5237 MB / 0.9182 GB, free: 120.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02392/2.513, allocations: 10.36 MB / 0.9283 GB, free: 120.3 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000105/2.513, allocations: 50.78 kB / 0.9283 GB, free: 120.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.02168/2.535, allocations: 9.456 MB / 0.9376 GB, free: 117.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000122/2.535, allocations: 14.44 kB / 0.9376 GB, free: 117.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04909/2.584, allocations: 23.02 MB / 0.9601 GB, free: 109.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.163e-05/2.585, allocations: 6.75 kB / 0.9601 GB, free: 109.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002842/2.587, allocations: 446.1 kB / 0.9605 GB, free: 109.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01181/2.599, allocations: 3.686 MB / 0.9641 GB, free: 108.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008753/2.6, allocations: 62.39 kB / 0.9642 GB, free: 108.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03468/2.635, allocations: 27.29 MB / 0.9908 GB, free: 91.98 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01569/2.651, allocations: 12.12 MB / 1.003 GB, free: 81.12 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02479/2.675, allocations: 14.62 MB / 1.017 GB, free: 68.84 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002406/2.678, allocations: 0.5605 MB / 1.017 GB, free: 68.29 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002204/2.68, allocations: 53.56 kB / 1.018 GB, free: 68.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004645/2.685, allocations: 234.8 kB / 1.018 GB, free: 68.09 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001448/2.686, allocations: 231.1 kB / 1.018 GB, free: 67.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007323/2.687, allocations: 93.38 kB / 1.018 GB, free: 67.87 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01008/2.697, allocations: 3.436 MB / 1.021 GB, free: 64.72 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.22e-07/2.697, allocations: 0 / 1.021 GB, free: 64.72 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01536/2.713, allocations: 2.034 MB / 1.023 GB, free: 62.7 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 ($STATESET2.x,$STATESET1.x,joint.phi,joint.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (206): * Single equations (assignments): 198 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 11,(3,100.0%) 35,(3,100.0%) 25} * Non-linear torn systems: 1 {3 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.02979/2.742, allocations: 16 MB / 1.039 GB, free: 46.67 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02017/2.763, allocations: 10.59 MB / 1.049 GB, free: 36.31 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.727e-05/2.763, allocations: 4 kB / 1.049 GB, free: 36.31 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007879/2.771, allocations: 4.174 MB / 1.053 GB, free: 32.09 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005938/2.777, allocations: 0.7556 MB / 1.054 GB, free: 31.38 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3674/3.144, allocations: 15.67 MB / 1.069 GB, free: 122.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01224/3.156, allocations: 5.075 MB / 1.074 GB, free: 121.7 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.009562/3.166, allocations: 2.71 MB / 1.077 GB, free: 121.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005827/3.172, allocations: 3.11 MB / 1.08 GB, free: 121.6 MB / 490.7 MB Notification: Performance of SimCode: time 8.22e-07/3.172, allocations: 0 / 1.08 GB, free: 121.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2362/3.408, allocations: 153.1 MB / 1.23 GB, free: 18.96 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001572/3.408, allocations: 204.8 kB / 1.23 GB, free: 18.74 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.681/11.09, allocations: 0.875 kB / 1.23 GB, free: 18.74 MB / 490.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint_res.mat does not exist to compare? outputFormat=mat