Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.0009419/0.0009418, allocations: 175.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.146/1.146, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007353/0.0007353, allocations: 92.12 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002873/0.0002873, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1854/0.1857, allocations: 47.58 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint): time 0.05094/0.2367, allocations: 78.11 MB / 453.3 MB, free: 2.387 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03167/0.2684, allocations: 16.52 MB / 469.8 MB, free: 1.809 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01332/0.2818, allocations: 390.9 kB / 470.2 MB, free: 1.426 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009374/0.2912, allocations: 3.654 MB / 473.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02451/0.3157, allocations: 10.62 MB / 484.5 MB, free: 3.098 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005039/0.3208, allocations: 1.096 MB / 485.6 MB, free: 2 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.009167/0.33, allocations: 7.833 MB / 493.4 MB, free: 10.15 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1851/0.5152, allocations: 10.7 MB / 0.4923 GB, free: 8.91 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003255/0.5184, allocations: 2.155 MB / 0.4944 GB, free: 8.91 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003209/0.5217, allocations: 3.05 MB / 0.4974 GB, free: 8.91 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007463/0.5224, allocations: 229.2 kB / 0.4976 GB, free: 8.91 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002668/0.5251, allocations: 1.509 MB / 0.4991 GB, free: 8.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002547/0.5277, allocations: 2.815 MB / 0.5018 GB, free: 8.91 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003613/0.5313, allocations: 3.072 MB / 0.5048 GB, free: 8.879 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008823/0.5401, allocations: 9.578 MB / 0.5142 GB, free: 8.324 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.5402, allocations: 0 / 0.5142 GB, free: 8.324 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5402, allocations: 0 / 0.5142 GB, free: 8.324 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003343/0.5405, allocations: 2.25 kB / 0.5142 GB, free: 8.324 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2390 * Number of variables: 2390 Notification: Performance of Generate backend data structure: time 0.01496/0.5555, allocations: 6.843 MB / 0.5209 GB, free: 4.871 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.5555, allocations: 8.719 kB / 0.5209 GB, free: 4.871 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002262/0.5578, allocations: 1.148 MB / 0.522 GB, free: 4.555 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007266/0.5651, allocations: 2.346 MB / 0.5243 GB, free: 3.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008252/0.5733, allocations: 5.043 MB / 0.5292 GB, free: 1.852 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002801/0.5737, allocations: 429.3 kB / 0.5296 GB, free: 1.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001687/0.5754, allocations: 0.5836 MB / 0.5302 GB, free: 1.824 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03098/0.6063, allocations: 16.83 MB / 0.5466 GB, free: 11.99 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002968/0.6067, allocations: 55.31 kB / 0.5467 GB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001698/0.6084, allocations: 269.5 kB / 0.5469 GB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004039/0.6124, allocations: 2.645 MB / 0.5495 GB, free: 9.723 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02792/0.6404, allocations: 14.37 MB / 0.5635 GB, free: 15.77 MB / 410.7 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.07892/0.7193, allocations: 63.3 MB / 0.6254 GB, free: 11.88 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02063/0.74, allocations: 7.735 MB / 0.6329 GB, free: 5.145 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004834/0.7449, allocations: 3.979 MB / 0.6368 GB, free: 1.156 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02374/0.7686, allocations: 16.77 MB / 0.6532 GB, free: 15.95 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.422e-05/0.7687, allocations: 67.38 kB / 0.6532 GB, free: 15.88 MB / 490.7 MB Notification: Performance of pre-optimization done (n=274): time 5.15e-06/0.7687, allocations: 0 / 0.6532 GB, free: 15.88 MB / 490.7 MB Notification: Performance of matching and sorting (n=340): time 0.2689/1.038, allocations: 42.84 MB / 0.6951 GB, free: 195.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01906/1.057, allocations: 16.31 MB / 0.711 GB, free: 182.9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008975/1.066, allocations: 5.735 MB / 0.7166 GB, free: 177.9 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007937/1.067, allocations: 73.7 kB / 0.7167 GB, free: 177.9 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002386/1.069, allocations: 4.748 MB / 0.7213 GB, free: 173.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001413/1.07, allocations: 1.274 MB / 0.7225 GB, free: 171.9 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009549/1.071, allocations: 182.2 kB / 0.7227 GB, free: 171.7 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006025/1.072, allocations: 0.6984 MB / 0.7234 GB, free: 171 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005348/1.077, allocations: 4.064 MB / 0.7274 GB, free: 166.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007034/1.084, allocations: 9.322 MB / 0.7365 GB, free: 155.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01245/1.097, allocations: 14.52 MB / 0.7507 GB, free: 138.1 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001279/1.097, allocations: 54.53 kB / 0.7507 GB, free: 138 MB / 490.7 MB Notification: Performance of matching and sorting (n=1197) (initialization): time 0.03334/1.13, allocations: 17.5 MB / 0.7678 GB, free: 120.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002379/1.131, allocations: 87.94 kB / 0.7679 GB, free: 120.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003005/1.131, allocations: 184 kB / 0.7681 GB, free: 120.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01381/1.145, allocations: 4.568 MB / 0.7725 GB, free: 115.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00692/1.152, allocations: 2.027 MB / 0.7745 GB, free: 113.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03664/1.188, allocations: 34.06 MB / 0.8078 GB, free: 78.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008193/1.197, allocations: 0.5344 MB / 0.8083 GB, free: 78.06 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001834/1.198, allocations: 0.5659 MB / 0.8088 GB, free: 77.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 839 * Number of states: 0 () * Number of discrete variables: 60 (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 (1066): * Single equations (assignments): 1053 * 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,(2,100.0%) 13,(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.00724/1.206, allocations: 3.258 MB / 0.812 GB, free: 74.23 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001331/1.207, allocations: 0.5322 MB / 0.8125 GB, free: 73.69 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01957/1.227, allocations: 9.938 MB / 0.8222 GB, free: 63.62 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-05/1.227, allocations: 55.92 kB / 0.8223 GB, free: 63.56 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0163/1.243, allocations: 8.479 MB / 0.8306 GB, free: 54.96 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.572e-05/1.243, allocations: 15.94 kB / 0.8306 GB, free: 54.94 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04362/1.287, allocations: 22.71 MB / 0.8528 GB, free: 32.08 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.667e-05/1.287, allocations: 8.594 kB / 0.8528 GB, free: 32.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002583/1.289, allocations: 487.2 kB / 0.8532 GB, free: 31.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01052/1.3, allocations: 3.28 MB / 0.8565 GB, free: 28.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008612/1.301, allocations: 67.98 kB / 0.8565 GB, free: 28.23 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2262/1.527, allocations: 24.37 MB / 0.8803 GB, free: 178.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01473/1.542, allocations: 10.62 MB / 0.8907 GB, free: 175.6 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02358/1.565, allocations: 13.87 MB / 0.9042 GB, free: 170.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003263/1.569, allocations: 1.125 MB / 0.9053 GB, free: 170.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001178/1.57, allocations: 62.41 kB / 0.9054 GB, free: 170.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003446/1.573, allocations: 220 kB / 0.9056 GB, free: 170.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001172/1.575, allocations: 233 kB / 0.9058 GB, free: 170 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003014/1.575, allocations: 100 kB / 0.9059 GB, free: 170 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007393/1.582, allocations: 3.567 MB / 0.9094 GB, free: 168.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.7e-07/1.582, allocations: 0 / 0.9094 GB, free: 168.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01217/1.595, allocations: 1.985 MB / 0.9113 GB, free: 168.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (220): * Single equations (assignments): 212 * 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.02727/1.622, allocations: 14.58 MB / 0.9256 GB, free: 156.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01728/1.639, allocations: 10.67 MB / 0.936 GB, free: 147.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/1.639, allocations: 4 kB / 0.936 GB, free: 147.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006509/1.646, allocations: 4.153 MB / 0.9401 GB, free: 143.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01156/1.657, allocations: 0.7995 MB / 0.9408 GB, free: 142.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1243/1.782, allocations: 66.07 MB / 1.005 GB, free: 72.43 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008872/1.791, allocations: 4.998 MB / 1.01 GB, free: 67.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005415/1.796, allocations: 3.233 MB / 1.013 GB, free: 64.17 MB / 490.7 MB Notification: Performance of SimCode: time 1.192e-06/1.796, allocations: 0 / 1.013 GB, free: 64.17 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.72/13.52, allocations: 286.7 MB / 1.293 GB, free: 160.2 MB / 490.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe 2>&1)