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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 94.55 kB / 16.3 MB, free: 5.992 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.001314/0.001314, allocations: 181.3 kB / 17.19 MB, free: 5.906 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.324/1.324, allocations: 223.2 MB / 241.1 MB, free: 5.383 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003009/0.000301, allocations: 7.062 kB / 300.8 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1074, allocations: 50.43 MB / 351.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint): time 0.06844/0.1759, allocations: 73.07 MB / 424.3 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2708/0.4467, allocations: 17.18 MB / 441.5 MB, free: 472 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01631/0.463, allocations: 384.7 kB / 441.9 MB, free: 472 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01187/0.475, allocations: 3.701 MB / 445.6 MB, free: 344 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03184/0.5068, allocations: 10.31 MB / 455.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005845/0.5127, allocations: 1.178 MB / 457 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006694/0.5194, allocations: 3.655 MB / 460.7 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01222/0.5317, allocations: 9.46 MB / 470.2 MB, free: 9.754 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003262/0.535, allocations: 1.716 MB / 471.9 MB, free: 9.195 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002406/0.5374, allocations: 2.002 MB / 473.9 MB, free: 8.453 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005951/0.538, allocations: 221.5 kB / 474.1 MB, free: 8.453 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002333/0.5403, allocations: 1.252 MB / 475.3 MB, free: 8.168 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002105/0.5425, allocations: 2.56 MB / 477.9 MB, free: 6.949 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001281/0.5438, allocations: 1.335 MB / 479.2 MB, free: 6.219 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008873/0.5526, allocations: 9.369 MB / 488.6 MB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.5527, allocations: 4 kB / 488.6 MB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.5527, allocations: 0 / 488.6 MB, free: 14.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003085/0.553, allocations: 1.422 kB / 488.6 MB, free: 14.12 MB / 382.1 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.01649/0.5695, allocations: 7.061 MB / 495.7 MB, free: 7.629 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.5696, allocations: 12.03 kB / 495.7 MB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004025/0.5736, allocations: 1.128 MB / 496.8 MB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009757/0.5834, allocations: 2.601 MB / 499.4 MB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009566/0.593, allocations: 4.187 MB / 0.4918 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003399/0.5933, allocations: 433.1 kB / 0.4922 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001992/0.5953, allocations: 0.5712 MB / 0.4928 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03464/0.63, allocations: 16.74 MB / 0.5091 GB, free: 3.645 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002128/0.6303, allocations: 62.2 kB / 0.5092 GB, free: 3.586 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007532/0.631, allocations: 261.4 kB / 0.5094 GB, free: 3.516 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003812/0.6348, allocations: 2.57 MB / 0.5119 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02906/0.6639, allocations: 14.37 MB / 0.526 GB, free: 4.938 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.08369/0.7476, allocations: 62.59 MB / 0.5871 GB, free: 5.078 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3875/1.135, allocations: 7.751 MB / 0.5947 GB, free: 172 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02626/1.161, allocations: 16.72 MB / 0.611 GB, free: 167.5 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.851e-05/1.162, allocations: 62.55 kB / 0.6111 GB, free: 167.4 MB / 478.1 MB Notification: Performance of pre-optimization done (n=265): time 5.46e-06/1.162, allocations: 0 / 0.6111 GB, free: 167.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=331): time 0.1089/1.27, allocations: 43.19 MB / 0.6532 GB, free: 136.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02063/1.291, allocations: 17.04 MB / 0.6699 GB, free: 118.8 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007353/1.298, allocations: 5.864 MB / 0.6756 GB, free: 112.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001054/1.3, allocations: 73.7 kB / 0.6757 GB, free: 112.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002449/1.302, allocations: 4.659 MB / 0.6802 GB, free: 108.2 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001643/1.304, allocations: 1.237 MB / 0.6814 GB, free: 107 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004595/1.304, allocations: 180.6 kB / 0.6816 GB, free: 106.8 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003681/1.305, allocations: 0.6902 MB / 0.6823 GB, free: 106.1 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00473/1.309, allocations: 4.001 MB / 0.6862 GB, free: 102.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006572/1.316, allocations: 9.137 MB / 0.6951 GB, free: 90.45 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006873/1.323, allocations: 5.932 MB / 0.7009 GB, free: 84.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.527e-05/1.323, allocations: 52 kB / 0.7009 GB, free: 84.45 MB / 478.1 MB Notification: Performance of matching and sorting (n=1175) (initialization): time 0.03567/1.359, allocations: 17.26 MB / 0.7178 GB, free: 67.12 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001492/1.359, allocations: 82.34 kB / 0.7179 GB, free: 67.04 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002352/1.359, allocations: 188 kB / 0.7181 GB, free: 66.86 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01956/1.379, allocations: 4.596 MB / 0.7225 GB, free: 62.28 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00978/1.388, allocations: 1.985 MB / 0.7245 GB, free: 60.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05619/1.445, allocations: 35.04 MB / 0.7587 GB, free: 24.33 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01288/1.458, allocations: 0.5305 MB / 0.7592 GB, free: 23.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002563/1.46, allocations: 0.5554 MB / 0.7598 GB, free: 23.24 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 826 * Number of states: 0 () * Number of discrete variables: 62 (sensorConstraintRelative.arrow.arrowLine.twoHeadedArrow,sensorConstraintRelative.arrow.headAtOrigin,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.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1044): * Single equations (assignments): 1031 * Array equations: 6 * 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%) 33,(2,100.0%) 19,(3,77.8%) 12,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {2 19} Notification: Performance of prepare postOptimizeDAE: time 0.00899/1.469, allocations: 3.214 MB / 0.7629 GB, free: 20.02 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001548/1.471, allocations: 0.5206 MB / 0.7634 GB, free: 19.49 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02829/1.499, allocations: 9.776 MB / 0.773 GB, free: 9.578 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001416/1.499, allocations: 51.94 kB / 0.773 GB, free: 9.527 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.3191/1.818, allocations: 8.366 MB / 0.7812 GB, free: 148.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001214/1.819, allocations: 14.67 kB / 0.7812 GB, free: 148.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0475/1.866, allocations: 22.13 MB / 0.8028 GB, free: 145.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.908e-05/1.866, allocations: 11.22 kB / 0.8028 GB, free: 145.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002688/1.869, allocations: 453.5 kB / 0.8032 GB, free: 145.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01051/1.879, allocations: 3.283 MB / 0.8065 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007017/1.88, allocations: 63.5 kB / 0.8065 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02985/1.91, allocations: 25.2 MB / 0.8311 GB, free: 131.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01312/1.923, allocations: 11.03 MB / 0.8419 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02196/1.945, allocations: 14.11 MB / 0.8557 GB, free: 106.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001762/1.947, allocations: 0.5648 MB / 0.8562 GB, free: 106.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001113/1.948, allocations: 63.52 kB / 0.8563 GB, free: 106.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0031/1.951, allocations: 211.7 kB / 0.8565 GB, free: 105.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007646/1.952, allocations: 221.4 kB / 0.8567 GB, free: 105.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000249/1.952, allocations: 82.17 kB / 0.8568 GB, free: 105.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005426/1.958, allocations: 3.686 MB / 0.8604 GB, free: 102 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.81e-07/1.958, allocations: 0 / 0.8604 GB, free: 102 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01014/1.968, allocations: 1.977 MB / 0.8623 GB, free: 100 MB / 478.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (210): * Single equations (assignments): 202 * 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%) 30,(3,100.0%) 21} * Non-linear torn systems: 1 {3 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.0223/1.99, allocations: 15.5 MB / 0.8774 GB, free: 84.46 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0147/2.005, allocations: 10.53 MB / 0.8877 GB, free: 73.91 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.175e-06/2.005, allocations: 0 / 0.8877 GB, free: 73.91 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005171/2.01, allocations: 4.075 MB / 0.8917 GB, free: 69.79 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004034/2.014, allocations: 0.7442 MB / 0.8924 GB, free: 69.07 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2822/2.296, allocations: 156.9 MB / 1.046 GB, free: 56.32 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01089/2.307, allocations: 5.054 MB / 1.051 GB, free: 55.46 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.009005/2.316, allocations: 2.736 MB / 1.053 GB, free: 55.29 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005617/2.322, allocations: 3.121 MB / 1.056 GB, free: 55.27 MB / 478.1 MB Notification: Performance of SimCode: time 1.062e-06/2.322, allocations: 0 / 1.056 GB, free: 55.27 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4195/2.742, allocations: 145.9 MB / 1.199 GB, free: 102.1 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002247/2.742, allocations: 237.9 kB / 1.199 GB, free: 101.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.601/8.343, allocations: 3.094 kB / 1.199 GB, free: 101.9 MB / 478.1 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