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.0007871/0.0007872, allocations: 89.39 kB / 16.32 MB, free: 6.453 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.0008301/0.0008301, allocations: 176.2 kB / 17.21 MB, free: 6.328 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.347/1.347, allocations: 223.3 MB / 241.2 MB, free: 14.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002588/0.000259, allocations: 4.75 kB / 300.9 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1047, allocations: 50.41 MB / 351.3 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint): time 0.2871/0.3918, allocations: 77.39 MB / 428.7 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0402/0.4321, allocations: 16.43 MB / 445.2 MB, free: 6.504 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01453/0.4467, allocations: 390.9 kB / 445.5 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01048/0.4572, allocations: 3.631 MB / 449.2 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02643/0.4836, allocations: 10.54 MB / 459.7 MB, free: 7.895 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005454/0.4891, allocations: 1.037 MB / 460.8 MB, free: 6.855 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01075/0.4999, allocations: 7.607 MB / 468.4 MB, free: 15.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01316/0.5131, allocations: 9.517 MB / 477.9 MB, free: 5.633 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004193/0.5173, allocations: 2.11 MB / 480 MB, free: 3.516 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004625/0.522, allocations: 2.971 MB / 483 MB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001151/0.5231, allocations: 224 kB / 483.2 MB, free: 324 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003475/0.5266, allocations: 1.283 MB / 484.5 MB, free: 15.03 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003413/0.5301, allocations: 2.758 MB / 487.2 MB, free: 12.27 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0021/0.5322, allocations: 1.333 MB / 488.5 MB, free: 10.92 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009817/0.542, allocations: 9.372 MB / 497.9 MB, free: 1.527 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.5421, allocations: 0 / 497.9 MB, free: 1.527 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5421, allocations: 0 / 497.9 MB, free: 1.527 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003778/0.5425, allocations: 0 / 497.9 MB, free: 1.527 MB / 398.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.01742/0.5599, allocations: 6.816 MB / 0.4929 GB, free: 10.63 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.482e-05/0.56, allocations: 8.031 kB / 0.4929 GB, free: 10.62 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004485/0.5645, allocations: 1.127 MB / 0.494 GB, free: 9.484 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01197/0.5765, allocations: 2.331 MB / 0.4963 GB, free: 7.141 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0133/0.5898, allocations: 4.59 MB / 0.5008 GB, free: 2.469 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006117/0.5904, allocations: 423.1 kB / 0.5012 GB, free: 2.055 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002683/0.5931, allocations: 0.57 MB / 0.5017 GB, free: 1.484 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04066/0.6338, allocations: 16.5 MB / 0.5178 GB, free: 88 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002918/0.6341, allocations: 59.45 kB / 0.5179 GB, free: 28 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001714/0.6359, allocations: 267.9 kB / 0.5182 GB, free: 15.76 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004148/0.64, allocations: 2.572 MB / 0.5207 GB, free: 13.19 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4222/1.062, allocations: 14.07 MB / 0.5344 GB, free: 144.8 MB / 446.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.08474/1.147, allocations: 62.38 MB / 0.5953 GB, free: 101.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01867/1.166, allocations: 7.638 MB / 0.6028 GB, free: 94.23 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004357/1.17, allocations: 3.922 MB / 0.6066 GB, free: 90.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02054/1.191, allocations: 16.57 MB / 0.6228 GB, free: 73.28 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.898e-05/1.191, allocations: 56.56 kB / 0.6229 GB, free: 73.21 MB / 446.1 MB Notification: Performance of pre-optimization done (n=265): time 5.23e-06/1.191, allocations: 0 / 0.6229 GB, free: 73.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=316): time 0.101/1.292, allocations: 39.5 MB / 0.6614 GB, free: 33.48 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01482/1.307, allocations: 11.64 MB / 0.6728 GB, free: 21.54 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00794/1.315, allocations: 5.607 MB / 0.6783 GB, free: 15.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008428/1.316, allocations: 73.7 kB / 0.6783 GB, free: 15.88 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002413/1.318, allocations: 4.654 MB / 0.6829 GB, free: 11.22 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001306/1.319, allocations: 1.198 MB / 0.6841 GB, free: 10.04 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004006/1.32, allocations: 176 kB / 0.6842 GB, free: 9.863 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003438/1.32, allocations: 0.6821 MB / 0.6849 GB, free: 9.172 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004618/1.325, allocations: 3.89 MB / 0.6887 GB, free: 5.277 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007965/1.333, allocations: 9.062 MB / 0.6975 GB, free: 9.66 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009316/1.342, allocations: 5.793 MB / 0.7032 GB, free: 3.844 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00013/1.342, allocations: 55.95 kB / 0.7033 GB, free: 3.789 MB / 462.1 MB Notification: Performance of matching and sorting (n=1160) (initialization): time 0.2988/1.641, allocations: 16.63 MB / 0.7195 GB, free: 143.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001704/1.641, allocations: 86.52 kB / 0.7196 GB, free: 143.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004034/1.642, allocations: 191.6 kB / 0.7198 GB, free: 143.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01348/1.655, allocations: 4.21 MB / 0.7239 GB, free: 143 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006753/1.662, allocations: 2.019 MB / 0.7258 GB, free: 142.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0328/1.695, allocations: 30.4 MB / 0.7555 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007327/1.702, allocations: 0.5349 MB / 0.7561 GB, free: 122.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001513/1.704, allocations: 0.5438 MB / 0.7566 GB, free: 122.1 MB / 462.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 (1053): * Single equations (assignments): 1040 * 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%) 25,(2,100.0%) 11,(2,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.005638/1.709, allocations: 3.194 MB / 0.7597 GB, free: 119 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001029/1.71, allocations: 0.5128 MB / 0.7602 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0167/1.727, allocations: 9.25 MB / 0.7692 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.173e-05/1.727, allocations: 45.33 kB / 0.7693 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.01377/1.741, allocations: 7.868 MB / 0.777 GB, free: 101.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.382e-05/1.741, allocations: 15.94 kB / 0.777 GB, free: 101.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03713/1.778, allocations: 21.35 MB / 0.7978 GB, free: 80.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.083e-05/1.778, allocations: 0 / 0.7978 GB, free: 80.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002357/1.781, allocations: 491.2 kB / 0.7983 GB, free: 79.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009014/1.79, allocations: 3.033 MB / 0.8013 GB, free: 76.58 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007472/1.79, allocations: 52 kB / 0.8013 GB, free: 76.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02512/1.815, allocations: 21.6 MB / 0.8224 GB, free: 54.48 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01086/1.826, allocations: 8.87 MB / 0.8311 GB, free: 45.34 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02251/1.849, allocations: 12.91 MB / 0.8437 GB, free: 32.27 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001566/1.851, allocations: 0.5489 MB / 0.8442 GB, free: 31.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001095/1.852, allocations: 50.73 kB / 0.8443 GB, free: 31.65 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002725/1.854, allocations: 215.7 kB / 0.8445 GB, free: 31.44 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006929/1.855, allocations: 205.6 kB / 0.8447 GB, free: 31.24 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002421/1.855, allocations: 83.98 kB / 0.8448 GB, free: 31.16 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005071/1.86, allocations: 3.483 MB / 0.8482 GB, free: 27.71 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.52e-07/1.86, allocations: 4 kB / 0.8482 GB, free: 27.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009147/1.87, allocations: 1.891 MB / 0.85 GB, free: 25.82 MB / 462.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 (219): * Single equations (assignments): 211 * 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%) 22,(3,100.0%) 13} * Non-linear torn systems: 1 {3 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.02113/1.891, allocations: 13.61 MB / 0.8633 GB, free: 12.07 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2314/2.122, allocations: 10.09 MB / 0.8732 GB, free: 144 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.581e-05/2.122, allocations: 1.031 kB / 0.8732 GB, free: 144 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00942/2.132, allocations: 3.817 MB / 0.8769 GB, free: 143.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007881/2.14, allocations: 0.7883 MB / 0.8777 GB, free: 143.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1172/2.257, allocations: 62.54 MB / 0.9387 GB, free: 100.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006413/2.263, allocations: 4.864 MB / 0.9435 GB, free: 96.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00718/2.271, allocations: 2.766 MB / 0.9462 GB, free: 93.33 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004457/2.275, allocations: 3.099 MB / 0.9492 GB, free: 90.23 MB / 462.1 MB Notification: Performance of SimCode: time 1.503e-06/2.275, allocations: 0 / 0.9492 GB, free: 90.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4102/2.685, allocations: 141.5 MB / 1.087 GB, free: 124.9 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/2.685, allocations: 252.8 kB / 1.088 GB, free: 124.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.646/8.331, allocations: 0 / 1.088 GB, free: 124.6 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