Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",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.001288/0.001288, allocations: 112.8 kB / 17.77 MB, free: 5.387 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.001266/0.001266, allocations: 180.9 kB / 18.7 MB, free: 4.469 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.492/1.492, allocations: 222.9 MB / 242.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2475/0.2475, allocations: 44.19 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 67.89 kB / 470.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3306, allocations: 60.82 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.02049/0.3511, allocations: 16.85 MB / 0.5349 GB, free: 7.082 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01378/0.3649, allocations: 5.46 MB / 0.5402 GB, free: 2.754 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004287/0.3693, allocations: 136 kB / 0.5403 GB, free: 2.723 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009871/0.3792, allocations: 4.666 MB / 0.5449 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008139/0.3874, allocations: 2.459 MB / 0.5473 GB, free: 13.79 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004003/0.3914, allocations: 1.302 MB / 0.5486 GB, free: 12.91 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01491/0.4064, allocations: 8.406 MB / 0.5568 GB, free: 4.742 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008381/0.4148, allocations: 5.525 MB / 0.5622 GB, free: 15.15 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005424/0.4202, allocations: 2.578 MB / 0.5647 GB, free: 12.56 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006115/0.4264, allocations: 3.178 MB / 0.5678 GB, free: 9.375 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002077/0.4285, allocations: 0.4961 MB / 0.5683 GB, free: 8.879 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004162/0.4327, allocations: 1.276 MB / 0.5695 GB, free: 7.602 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003881/0.4366, allocations: 2.845 MB / 0.5723 GB, free: 4.75 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005078/0.4417, allocations: 3.178 MB / 0.5754 GB, free: 1.555 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01446/0.4562, allocations: 9.476 MB / 0.5847 GB, free: 8.043 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.816e-06/0.4562, allocations: 0 / 0.5847 GB, free: 8.043 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4562, allocations: 0 / 0.5847 GB, free: 8.043 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003264/0.4566, allocations: 0 / 0.5847 GB, free: 8.043 MB / 446.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.02381/0.4804, allocations: 7.703 MB / 0.5922 GB, free: 256 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/0.4805, allocations: 8.031 kB / 0.5922 GB, free: 248 kB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002217/0.4827, allocations: 0.7388 MB / 0.5929 GB, free: 15.49 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07053/0.5532, allocations: 8.946 MB / 0.6017 GB, free: 6.527 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01658/0.5699, allocations: 6.805 MB / 0.6083 GB, free: 15.65 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004182/0.5703, allocations: 325.5 kB / 0.6086 GB, free: 15.33 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001698/0.572, allocations: 411.7 kB / 0.609 GB, free: 14.93 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02605/0.5981, allocations: 10.75 MB / 0.6195 GB, free: 3.609 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003263/0.5985, allocations: 67.53 kB / 0.6196 GB, free: 3.543 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001191/0.5997, allocations: 179.8 kB / 0.6197 GB, free: 3.367 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003743/0.6034, allocations: 1.729 MB / 0.6214 GB, free: 1.633 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02326/0.6267, allocations: 9.032 MB / 0.6302 GB, free: 8.582 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06951/0.6963, allocations: 44.23 MB / 0.6734 GB, free: 11.14 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02381/0.7201, allocations: 7.631 MB / 0.6809 GB, free: 3.488 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007537/0.7277, allocations: 5.126 MB / 0.6859 GB, free: 14.35 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02248/0.7502, allocations: 12.72 MB / 0.6983 GB, free: 1.352 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.843e-05/0.7504, allocations: 64.8 kB / 0.6984 GB, free: 1.277 MB / 0.545 GB Notification: Performance of pre-optimization done (n=283): time 5.37e-06/0.7504, allocations: 0 / 0.6984 GB, free: 1.277 MB / 0.545 GB Notification: Performance of matching and sorting (n=406): time 0.5117/1.262, allocations: 74.65 MB / 0.7713 GB, free: 135.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01381/1.276, allocations: 11.09 MB / 0.7821 GB, free: 124 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006844/1.283, allocations: 4.319 MB / 0.7863 GB, free: 119.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001038/1.284, allocations: 89.7 kB / 0.7864 GB, free: 119.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002008/1.286, allocations: 3.054 MB / 0.7894 GB, free: 116.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002011/1.288, allocations: 1.467 MB / 0.7908 GB, free: 115.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003705/1.292, allocations: 1.143 MB / 0.792 GB, free: 114.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.343e-05/1.292, allocations: 305.1 kB / 0.7922 GB, free: 114.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005854/1.298, allocations: 4.661 MB / 0.7968 GB, free: 109.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007241/1.305, allocations: 6.676 MB / 0.8033 GB, free: 101.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01414/1.319, allocations: 12.08 MB / 0.8151 GB, free: 88.94 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.698e-05/1.319, allocations: 20 kB / 0.8151 GB, free: 88.92 MB / 0.5606 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.03798/1.357, allocations: 19.05 MB / 0.8337 GB, free: 69.82 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.95e-05/1.357, allocations: 42.84 kB / 0.8338 GB, free: 69.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.45e-05/1.357, allocations: 68 kB / 0.8338 GB, free: 69.72 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02347/1.381, allocations: 8.807 MB / 0.8424 GB, free: 60.89 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003909/1.385, allocations: 1.014 MB / 0.8434 GB, free: 59.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06873/1.454, allocations: 54.04 MB / 0.8962 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006409/1.46, allocations: 496.8 kB / 0.8967 GB, free: 4.961 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001447/1.462, allocations: 279.9 kB / 0.8969 GB, free: 4.688 MB / 0.5606 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.005298/1.467, allocations: 2.267 MB / 0.8992 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001835/1.469, allocations: 0.4967 MB / 0.8996 GB, free: 1.934 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04391/1.513, allocations: 17.96 MB / 0.9172 GB, free: 15.92 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03957/1.552, allocations: 16.48 MB / 0.9333 GB, free: 15.4 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.657e-05/1.552, allocations: 28 kB / 0.9333 GB, free: 15.37 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.964e-05/1.552, allocations: 19.92 kB / 0.9333 GB, free: 15.35 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3453/1.898, allocations: 35.09 MB / 0.9676 GB, free: 193.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-05/1.898, allocations: 3.812 kB / 0.9676 GB, free: 193.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002476/1.9, allocations: 455.4 kB / 0.968 GB, free: 193.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02374/1.924, allocations: 8.649 MB / 0.9765 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001306/1.925, allocations: 74.84 kB / 0.9765 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06822/1.994, allocations: 52.59 MB / 1.028 GB, free: 143.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02034/2.014, allocations: 9.81 MB / 1.037 GB, free: 133.9 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07134/2.085, allocations: 24.12 MB / 1.061 GB, free: 110 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002093/2.088, allocations: 0.5482 MB / 1.062 GB, free: 109.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002252/2.09, allocations: 71.98 kB / 1.062 GB, free: 109.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00703/2.097, allocations: 379.4 kB / 1.062 GB, free: 109.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002487/2.1, allocations: 322.8 kB / 1.062 GB, free: 108.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008162/2.1, allocations: 104 kB / 1.062 GB, free: 108.8 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.006811/2.107, allocations: 2.838 MB / 1.065 GB, free: 106 MB / 0.6075 GB Notification: Performance of sort global known variables: time 6.62e-07/2.107, allocations: 0 / 1.065 GB, free: 106 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0114/2.119, allocations: 1.991 MB / 1.067 GB, free: 104 MB / 0.6075 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.05218/2.171, allocations: 24.77 MB / 1.091 GB, free: 79.12 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01837/2.189, allocations: 12.72 MB / 1.104 GB, free: 66.36 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-05/2.189, allocations: 4 kB / 1.104 GB, free: 66.35 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01185/2.201, allocations: 7.251 MB / 1.111 GB, free: 59.05 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005158/2.206, allocations: 0.8476 MB / 1.112 GB, free: 58.21 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4214/2.628, allocations: 80.62 MB / 1.19 GB, free: 206.5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006882/2.635, allocations: 4.155 MB / 1.194 GB, free: 205.6 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.00446/2.639, allocations: 1.61 MB / 1.196 GB, free: 205.6 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004219/2.644, allocations: 2.619 MB / 1.199 GB, free: 205.6 MB / 0.6231 GB Notification: Performance of SimCode: time 1.242e-06/2.644, allocations: 0.5312 kB / 1.199 GB, free: 205.6 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2858/2.929, allocations: 171.1 MB / 1.366 GB, free: 51.35 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.16/34.09, allocations: 16.03 kB / 1.366 GB, free: 51.34 MB / 0.6231 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1)