Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001252/0.001252, 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.001426/0.001425, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2324/0.2324, allocations: 46.13 MB / 344.2 MB, free: 11.58 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003839/0.003839, allocations: 83.45 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1437, allocations: 62.44 MB / 480.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.02038/0.1641, allocations: 16.8 MB / 497 MB, free: 4.285 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01201/0.1762, allocations: 5.486 MB / 0.4907 GB, free: 14.78 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003484/0.1797, allocations: 131.6 kB / 0.4908 GB, free: 14.65 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009298/0.1891, allocations: 4.645 MB / 0.4954 GB, free: 9.992 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006344/0.1955, allocations: 2.431 MB / 0.4978 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00275/0.1982, allocations: 1.307 MB / 0.499 GB, free: 6.246 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2367/0.435, allocations: 8.605 MB / 0.5074 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007875/0.4429, allocations: 5.535 MB / 0.5128 GB, free: 13.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005615/0.4486, allocations: 2.559 MB / 0.5153 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006615/0.4552, allocations: 3.191 MB / 0.5185 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00301/0.4583, allocations: 0.4921 MB / 0.5189 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005622/0.4639, allocations: 1.252 MB / 0.5202 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005859/0.4698, allocations: 2.835 MB / 0.5229 GB, free: 12.92 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007453/0.4773, allocations: 3.166 MB / 0.526 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.012/0.4893, allocations: 9.252 MB / 0.5351 GB, free: 6.367 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.4894, allocations: 0 / 0.5351 GB, free: 6.367 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4894, allocations: 0 / 0.5351 GB, free: 6.367 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003826/0.4898, allocations: 0 / 0.5351 GB, free: 6.367 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.02177/0.5116, allocations: 7.541 MB / 0.5424 GB, free: 1.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.5116, allocations: 8.875 kB / 0.5424 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001622/0.5133, allocations: 0.7345 MB / 0.5431 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06982/0.5831, allocations: 8.911 MB / 0.5518 GB, free: 8.988 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01732/0.6005, allocations: 6.19 MB / 0.5579 GB, free: 2.961 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004152/0.6009, allocations: 320.4 kB / 0.5582 GB, free: 2.668 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001993/0.6029, allocations: 414.5 kB / 0.5586 GB, free: 2.289 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02643/0.6294, allocations: 10.75 MB / 0.5691 GB, free: 7.117 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002214/0.6296, allocations: 64.2 kB / 0.5692 GB, free: 7.07 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005198/0.6302, allocations: 178.8 kB / 0.5693 GB, free: 6.922 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003584/0.6338, allocations: 1.72 MB / 0.571 GB, free: 5.215 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02437/0.6581, allocations: 9.036 MB / 0.5798 GB, free: 12.31 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07481/0.733, allocations: 44.4 MB / 0.6232 GB, free: 15.27 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02332/0.7564, allocations: 7.63 MB / 0.6306 GB, free: 7.629 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007509/0.7639, allocations: 5.128 MB / 0.6356 GB, free: 2.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02276/0.7867, allocations: 12.71 MB / 0.6481 GB, free: 5.609 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.014e-05/0.7868, allocations: 64.17 kB / 0.6481 GB, free: 5.539 MB / 494.1 MB Notification: Performance of pre-optimization done (n=283): time 6.042e-06/0.7868, allocations: 0 / 0.6481 GB, free: 5.539 MB / 494.1 MB Notification: Performance of matching and sorting (n=406): time 0.5342/1.321, allocations: 74.59 MB / 0.721 GB, free: 191.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01712/1.338, allocations: 11.1 MB / 0.7318 GB, free: 187.1 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007593/1.346, allocations: 4.313 MB / 0.736 GB, free: 185.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001407/1.347, allocations: 87.45 kB / 0.7361 GB, free: 185.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002374/1.35, allocations: 2.969 MB / 0.739 GB, free: 184.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00234/1.352, allocations: 1.405 MB / 0.7404 GB, free: 183.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002051/1.354, allocations: 1.132 MB / 0.7415 GB, free: 182.7 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.649e-05/1.354, allocations: 302.7 kB / 0.7418 GB, free: 182.4 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005788/1.36, allocations: 4.655 MB / 0.7463 GB, free: 180.6 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0067/1.367, allocations: 6.686 MB / 0.7528 GB, free: 176.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01321/1.38, allocations: 12.07 MB / 0.7646 GB, free: 169.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-05/1.38, allocations: 18.66 kB / 0.7647 GB, free: 169.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.03469/1.415, allocations: 19.03 MB / 0.7832 GB, free: 153.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.942e-05/1.415, allocations: 32.19 kB / 0.7833 GB, free: 153.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.609e-05/1.415, allocations: 68 kB / 0.7833 GB, free: 153.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02201/1.437, allocations: 8.84 MB / 0.792 GB, free: 144.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003946/1.441, allocations: 1.014 MB / 0.793 GB, free: 143.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06109/1.502, allocations: 54.02 MB / 0.8457 GB, free: 89.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006799/1.509, allocations: 496.4 kB / 0.8462 GB, free: 88.68 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00118/1.51, allocations: 285.2 kB / 0.8465 GB, free: 88.4 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.004354/1.514, allocations: 2.263 MB / 0.8487 GB, free: 86.13 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001308/1.516, allocations: 485.8 kB / 0.8491 GB, free: 85.65 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03195/1.548, allocations: 17.95 MB / 0.8667 GB, free: 67.64 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03146/1.579, allocations: 16.48 MB / 0.8828 GB, free: 51.11 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.666e-05/1.579, allocations: 31.94 kB / 0.8828 GB, free: 51.08 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.042e-05/1.579, allocations: 15.94 kB / 0.8828 GB, free: 51.07 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05545/1.635, allocations: 35.29 MB / 0.9173 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.338e-05/1.635, allocations: 4.469 kB / 0.9173 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002696/1.638, allocations: 459.3 kB / 0.9177 GB, free: 14.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2993/1.937, allocations: 8.667 MB / 0.9262 GB, free: 180 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0012/1.938, allocations: 74.38 kB / 0.9262 GB, free: 180 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06735/2.005, allocations: 52.54 MB / 0.9775 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01215/2.018, allocations: 9.817 MB / 0.9871 GB, free: 150.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0385/2.056, allocations: 24.08 MB / 1.011 GB, free: 126.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00163/2.058, allocations: 0.5149 MB / 1.011 GB, free: 126.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001942/2.06, allocations: 72 kB / 1.011 GB, free: 126.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004754/2.065, allocations: 379.4 kB / 1.012 GB, free: 125.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001852/2.067, allocations: 324.1 kB / 1.012 GB, free: 125.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004376/2.067, allocations: 100.5 kB / 1.012 GB, free: 125.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003813/2.071, allocations: 2.836 MB / 1.015 GB, free: 122.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/2.071, allocations: 0 / 1.015 GB, free: 122.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007591/2.078, allocations: 1.984 MB / 1.017 GB, free: 120.6 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.03896/2.117, allocations: 24.73 MB / 1.041 GB, free: 95.74 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02849/2.146, allocations: 19.08 MB / 1.059 GB, free: 76.65 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/2.146, allocations: 0 / 1.059 GB, free: 76.65 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01233/2.158, allocations: 7.216 MB / 1.067 GB, free: 69.38 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009247/2.168, allocations: 0.8433 MB / 1.067 GB, free: 68.55 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3733/2.541, allocations: 91.69 MB / 1.157 GB, free: 166.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006742/2.548, allocations: 4.153 MB / 1.161 GB, free: 165.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005851/2.554, allocations: 1.61 MB / 1.163 GB, free: 165.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006355/2.56, allocations: 2.618 MB / 1.165 GB, free: 163.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.373e-06/2.56, allocations: 1.75 kB / 1.165 GB, free: 163.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5618/3.122, allocations: 173.1 MB / 1.334 GB, free: 159.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.76/18.88, allocations: 13.55 kB / 1.334 GB, free: 159.1 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1)