Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001088/0.001088, allocations: 195.7 kB / 16.1 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 226.5 MB / 243.4 MB, free: 6.395 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009018/0.000902, allocations: 91.25 kB / 295.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2918/0.2918, allocations: 44.82 MB / 392.3 MB, free: 35.63 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000335/0.000335, allocations: 8 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2932, allocations: 62.97 MB / 0.516 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.06208/0.3553, allocations: 75.6 MB / 0.5898 GB, free: 12.84 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03761/0.393, allocations: 15.77 MB / 0.6052 GB, free: 13.82 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.015/0.408, allocations: 382.9 kB / 0.6056 GB, free: 13.45 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01198/0.42, allocations: 3.806 MB / 0.6093 GB, free: 9.625 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0301/0.4502, allocations: 11.39 MB / 0.6204 GB, free: 14.2 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005832/0.456, allocations: 1.194 MB / 0.6216 GB, free: 13 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.3912/0.8472, allocations: 119.7 MB / 0.7385 GB, free: 40.84 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008882/0.8561, allocations: 7.538 MB / 0.7459 GB, free: 35.5 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003478/0.8596, allocations: 2.086 MB / 0.7479 GB, free: 34.08 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003868/0.8635, allocations: 2.922 MB / 0.7508 GB, free: 32 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001099/0.8647, allocations: 186.3 kB / 0.7509 GB, free: 31.82 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002444/0.8671, allocations: 1.013 MB / 0.7519 GB, free: 31.02 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002779/0.8699, allocations: 2.475 MB / 0.7543 GB, free: 29.16 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003927/0.8739, allocations: 2.564 MB / 0.7568 GB, free: 28.19 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005918/0.8798, allocations: 7.353 MB / 0.764 GB, free: 21.81 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.8798, allocations: 0 / 0.764 GB, free: 21.81 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.926e-06/0.8799, allocations: 4 kB / 0.764 GB, free: 21.8 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002276/0.8801, allocations: 0 / 0.764 GB, free: 21.8 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.01401/0.8941, allocations: 6.349 MB / 0.7702 GB, free: 15.95 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.8942, allocations: 12.03 kB / 0.7702 GB, free: 15.94 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002465/0.8966, allocations: 0.7391 MB / 0.771 GB, free: 15.5 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06017/0.9568, allocations: 8.991 MB / 0.7797 GB, free: 7.25 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01201/0.9689, allocations: 6.173 MB / 0.7858 GB, free: 2.68 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002766/0.9692, allocations: 326.1 kB / 0.7861 GB, free: 2.484 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001362/0.9706, allocations: 419.6 kB / 0.7865 GB, free: 2.211 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02203/0.9926, allocations: 10.77 MB / 0.797 GB, free: 9.906 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002326/0.9929, allocations: 59.27 kB / 0.7971 GB, free: 9.867 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005402/0.9935, allocations: 180.9 kB / 0.7972 GB, free: 9.816 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003139/0.9966, allocations: 1.721 MB / 0.7989 GB, free: 8.395 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02015/1.017, allocations: 9.054 MB / 0.8078 GB, free: 1.977 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06583/1.083, allocations: 44.43 MB / 0.8511 GB, free: 12.4 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02208/1.105, allocations: 7.667 MB / 0.8586 GB, free: 4.727 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007224/1.112, allocations: 5.118 MB / 0.8636 GB, free: 15.61 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02224/1.134, allocations: 12.71 MB / 0.8761 GB, free: 2.742 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.296e-05/1.134, allocations: 62.77 kB / 0.8761 GB, free: 2.672 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=283): time 6.311e-06/1.134, allocations: 0 / 0.8761 GB, free: 2.672 MB / 0.5573 GB Notification: Performance of matching and sorting (n=406): time 0.4416/1.576, allocations: 75.69 MB / 0.95 GB, free: 198.3 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01345/1.59, allocations: 10.95 MB / 0.9607 GB, free: 187.2 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004797/1.594, allocations: 4.29 MB / 0.9649 GB, free: 182.9 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0009739/1.595, allocations: 91.5 kB / 0.965 GB, free: 182.8 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001356/1.597, allocations: 2.969 MB / 0.9679 GB, free: 179.8 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001418/1.598, allocations: 1.408 MB / 0.9693 GB, free: 178.4 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000434/1.599, allocations: 108 kB / 0.9694 GB, free: 178.3 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001994/1.599, allocations: 0.5337 MB / 0.9699 GB, free: 177.8 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005066/1.604, allocations: 4.633 MB / 0.9744 GB, free: 173.1 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006086/1.61, allocations: 6.665 MB / 0.9809 GB, free: 165.6 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01276/1.623, allocations: 12.03 MB / 0.9927 GB, free: 152.6 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.129e-05/1.623, allocations: 24 kB / 0.9927 GB, free: 152.6 MB / 0.573 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.03575/1.659, allocations: 18.98 MB / 1.011 GB, free: 133.5 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 5.123e-05/1.659, allocations: 39.94 kB / 1.011 GB, free: 133.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-05/1.659, allocations: 66.72 kB / 1.011 GB, free: 133.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02269/1.682, allocations: 8.787 MB / 1.02 GB, free: 124.6 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004008/1.686, allocations: 1.014 MB / 1.021 GB, free: 123.6 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05855/1.744, allocations: 50.27 MB / 1.07 GB, free: 72.96 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005581/1.75, allocations: 496.3 kB / 1.07 GB, free: 72.48 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009022/1.751, allocations: 279.9 kB / 1.071 GB, free: 72.2 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 294 * Number of states: 0 () * Number of discrete variables: 57 (fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (515): * Single equations (assignments): 506 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(12,52.1%) 103,(2,100.0%) 24} * Non-linear torn systems: 1 {2 48} Notification: Performance of prepare postOptimizeDAE: time 0.003501/1.754, allocations: 2.263 MB / 1.073 GB, free: 69.93 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008993/1.755, allocations: 481.8 kB / 1.073 GB, free: 69.45 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03208/1.787, allocations: 17.95 MB / 1.091 GB, free: 51.45 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02944/1.817, allocations: 16.46 MB / 1.107 GB, free: 34.94 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.543e-05/1.817, allocations: 28 kB / 1.107 GB, free: 34.91 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001033/1.817, allocations: 19.92 kB / 1.107 GB, free: 34.89 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3034/2.12, allocations: 35.3 MB / 1.142 GB, free: 200.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.337e-05/2.12, allocations: 7.906 kB / 1.142 GB, free: 200.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002359/2.123, allocations: 449.5 kB / 1.142 GB, free: 200.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02506/2.148, allocations: 8.792 MB / 1.151 GB, free: 200.2 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001064/2.149, allocations: 77.97 kB / 1.151 GB, free: 200.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06044/2.209, allocations: 48.66 MB / 1.198 GB, free: 177.1 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01197/2.221, allocations: 9.743 MB / 1.208 GB, free: 167.4 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03744/2.259, allocations: 24.07 MB / 1.231 GB, free: 143.5 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001379/2.26, allocations: 0.511 MB / 1.232 GB, free: 143.2 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001174/2.262, allocations: 72 kB / 1.232 GB, free: 143.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003367/2.265, allocations: 387.4 kB / 1.232 GB, free: 142.8 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00165/2.267, allocations: 326.1 kB / 1.232 GB, free: 142.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003376/2.267, allocations: 99.98 kB / 1.233 GB, free: 142.4 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003512/2.27, allocations: 2.809 MB / 1.235 GB, free: 139.6 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.6e-07/2.27, allocations: 0 / 1.235 GB, free: 139.6 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.006275/2.277, allocations: 1.989 MB / 1.237 GB, free: 137.6 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 ($STATESET1.x[2],$STATESET1.x[1],revolute3.phi,revolute2.phi) * 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 (217): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(11,54.5%) 97,(4,100.0%) 37} * Non-linear torn systems: 1 {2 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.03832/2.315, allocations: 24.72 MB / 1.261 GB, free: 112.9 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01902/2.334, allocations: 12.61 MB / 1.274 GB, free: 100.3 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/2.334, allocations: 0 / 1.274 GB, free: 100.3 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01231/2.346, allocations: 7.195 MB / 1.281 GB, free: 93.05 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009359/2.356, allocations: 0.8021 MB / 1.281 GB, free: 92.27 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1175/2.473, allocations: 65.09 MB / 1.345 GB, free: 23.94 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006128/2.48, allocations: 4.152 MB / 1.349 GB, free: 19.75 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004251/2.484, allocations: 2.639 MB / 1.352 GB, free: 17.11 MB / 0.573 GB Notification: Performance of SimCode: time 1.212e-06/2.484, allocations: 4 kB / 1.352 GB, free: 17.11 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.83/13.31, allocations: 173.1 MB / 1.521 GB, free: 75.72 MB / 0.573 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1)