Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001672/0.001672, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002129/0.002129, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2432/0.2432, allocations: 46.09 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002562/0.002562, allocations: 79.66 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1521/0.1547, allocations: 62.44 MB / 480.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.01964/0.1744, allocations: 16.81 MB / 496.9 MB, free: 4.309 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0133/0.1877, allocations: 5.486 MB / 0.4906 GB, free: 14.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003731/0.1915, allocations: 131.6 kB / 0.4908 GB, free: 14.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009151/0.2008, allocations: 4.645 MB / 0.4953 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007362/0.2081, allocations: 2.424 MB / 0.4977 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003029/0.2112, allocations: 1.299 MB / 0.4989 GB, free: 6.281 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2594/0.4707, allocations: 8.615 MB / 0.5074 GB, free: 14.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009129/0.4798, allocations: 5.537 MB / 0.5128 GB, free: 13.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006799/0.4867, allocations: 2.556 MB / 0.5153 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006996/0.4937, allocations: 3.186 MB / 0.5184 GB, free: 13.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00321/0.497, allocations: 0.495 MB / 0.5189 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005199/0.5022, allocations: 1.252 MB / 0.5201 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004934/0.5072, allocations: 2.839 MB / 0.5228 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005718/0.5129, allocations: 3.162 MB / 0.5259 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01037/0.5233, allocations: 9.255 MB / 0.535 GB, free: 6.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.185e-06/0.5233, allocations: 0 / 0.535 GB, free: 6.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5234, allocations: 3.062 kB / 0.535 GB, free: 6.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003288/0.5237, allocations: 0 / 0.535 GB, free: 6.41 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02282/0.5465, allocations: 7.529 MB / 0.5423 GB, free: 1.508 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.5466, allocations: 7.938 kB / 0.5423 GB, free: 1.508 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002439/0.549, allocations: 0.7448 MB / 0.5431 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07934/0.6284, allocations: 8.914 MB / 0.5518 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01602/0.6445, allocations: 6.188 MB / 0.5578 GB, free: 3.008 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005321/0.6451, allocations: 317.6 kB / 0.5581 GB, free: 2.719 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002746/0.6478, allocations: 419.6 kB / 0.5585 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03128/0.6791, allocations: 10.75 MB / 0.569 GB, free: 7.164 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004732/0.6797, allocations: 59.84 kB / 0.5691 GB, free: 7.121 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001895/0.6816, allocations: 179.3 kB / 0.5692 GB, free: 6.973 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003863/0.6855, allocations: 1.731 MB / 0.5709 GB, free: 5.258 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02191/0.7074, allocations: 9.031 MB / 0.5798 GB, free: 12.36 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07067/0.7781, allocations: 44.39 MB / 0.6231 GB, free: 15.33 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02308/0.8013, allocations: 7.627 MB / 0.6306 GB, free: 7.688 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007115/0.8084, allocations: 5.128 MB / 0.6356 GB, free: 2.559 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02282/0.8313, allocations: 12.72 MB / 0.648 GB, free: 5.66 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.649e-05/0.8314, allocations: 64.8 kB / 0.648 GB, free: 5.586 MB / 494.1 MB Notification: Performance of pre-optimization done (n=283): time 4.198e-06/0.8314, allocations: 0 / 0.648 GB, free: 5.586 MB / 494.1 MB Notification: Performance of matching and sorting (n=406): time 0.4889/1.32, allocations: 74.58 MB / 0.7209 GB, free: 192.1 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01674/1.337, allocations: 11.1 MB / 0.7317 GB, free: 187.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007011/1.344, allocations: 4.316 MB / 0.7359 GB, free: 186 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001035/1.345, allocations: 86.77 kB / 0.736 GB, free: 185.9 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002394/1.348, allocations: 2.969 MB / 0.7389 GB, free: 184.4 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001821/1.349, allocations: 1.404 MB / 0.7403 GB, free: 183.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001986/1.351, allocations: 1.131 MB / 0.7414 GB, free: 182.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.956e-05/1.351, allocations: 308.9 kB / 0.7417 GB, free: 182.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005388/1.357, allocations: 4.651 MB / 0.7462 GB, free: 180.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006031/1.363, allocations: 6.688 MB / 0.7528 GB, free: 176.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01223/1.375, allocations: 12.08 MB / 0.7646 GB, free: 169.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.913e-05/1.375, allocations: 17.34 kB / 0.7646 GB, free: 169.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.03382/1.409, allocations: 19.03 MB / 0.7832 GB, free: 153.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.535e-05/1.409, allocations: 34.66 kB / 0.7832 GB, free: 153.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.323e-05/1.409, allocations: 69.2 kB / 0.7833 GB, free: 153.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02225/1.431, allocations: 8.839 MB / 0.7919 GB, free: 144.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003823/1.435, allocations: 1.014 MB / 0.7929 GB, free: 143.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05948/1.495, allocations: 54.03 MB / 0.8456 GB, free: 89.17 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006365/1.501, allocations: 499.3 kB / 0.8461 GB, free: 88.68 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001051/1.502, allocations: 281.4 kB / 0.8464 GB, free: 88.41 MB / 0.545 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(13,102,46.2%), (3,23,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,48)} Notification: Performance of prepare postOptimizeDAE: time 0.003882/1.506, allocations: 2.265 MB / 0.8486 GB, free: 86.14 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001196/1.507, allocations: 485.8 kB / 0.8491 GB, free: 85.66 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03252/1.54, allocations: 17.96 MB / 0.8666 GB, free: 67.64 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03001/1.57, allocations: 16.47 MB / 0.8827 GB, free: 51.12 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.187e-05/1.57, allocations: 24 kB / 0.8827 GB, free: 51.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.684e-05/1.57, allocations: 23.92 kB / 0.8827 GB, free: 51.07 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05894/1.629, allocations: 35.28 MB / 0.9172 GB, free: 15.37 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-05/1.629, allocations: 4 kB / 0.9172 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002451/1.632, allocations: 459.8 kB / 0.9176 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3024/1.934, allocations: 8.669 MB / 0.9261 GB, free: 180.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00128/1.935, allocations: 74.97 kB / 0.9262 GB, free: 180.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06675/2.002, allocations: 52.53 MB / 0.9775 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01257/2.015, allocations: 9.832 MB / 0.9871 GB, free: 150.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04055/2.055, allocations: 24.07 MB / 1.011 GB, free: 126.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002271/2.058, allocations: 0.5121 MB / 1.011 GB, free: 126.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002439/2.06, allocations: 71.98 kB / 1.011 GB, free: 126.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004575/2.065, allocations: 383.4 kB / 1.012 GB, free: 125.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001956/2.067, allocations: 326.6 kB / 1.012 GB, free: 125.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000453/2.067, allocations: 103 kB / 1.012 GB, free: 125.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004245/2.072, allocations: 2.832 MB / 1.015 GB, free: 122.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.11e-07/2.072, allocations: 0 / 1.015 GB, free: 122.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008265/2.08, allocations: 1.98 MB / 1.017 GB, free: 120.5 MB / 0.545 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(11,97,54.5%), (4,37,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,49)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03771/2.118, allocations: 24.74 MB / 1.041 GB, free: 95.71 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.03111/2.149, allocations: 19.07 MB / 1.059 GB, free: 76.63 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/2.149, allocations: 0 / 1.059 GB, free: 76.63 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0155/2.164, allocations: 7.224 MB / 1.066 GB, free: 69.36 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008003/2.172, allocations: 0.8484 MB / 1.067 GB, free: 68.52 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4718/2.644, allocations: 91.69 MB / 1.157 GB, free: 166.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007876/2.652, allocations: 4.152 MB / 1.161 GB, free: 166 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0056/2.658, allocations: 1.61 MB / 1.162 GB, free: 165.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0054/2.663, allocations: 2.616 MB / 1.165 GB, free: 163.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.453e-06/2.663, allocations: 0 / 1.165 GB, free: 163.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5136/3.177, allocations: 173.1 MB / 1.334 GB, free: 159.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.33/18.51, allocations: 6.938 kB / 1.334 GB, free: 159.2 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1)