Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.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.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00178/0.00178, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001945/0.001945, allocations: 197.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 227.4 MB / 247 MB, free: 10.42 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.2264/0.2264, allocations: 46.12 MB / 344.3 MB, free: 11.46 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.002467/0.002467, allocations: 75.88 kB / 480.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3602, allocations: 62.44 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.0149/0.3751, allocations: 13.39 MB / 0.5437 GB, free: 2.836 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01136/0.3865, allocations: 4.801 MB / 0.5483 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003549/0.3902, allocations: 94.38 kB / 0.5484 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007811/0.398, allocations: 3.725 MB / 0.5521 GB, free: 11.66 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007906/0.4059, allocations: 2.155 MB / 0.5542 GB, free: 9.5 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003094/0.4091, allocations: 1.068 MB / 0.5552 GB, free: 8.43 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01165/0.4207, allocations: 6.666 MB / 0.5617 GB, free: 1.75 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007151/0.428, allocations: 4.505 MB / 0.5661 GB, free: 13.18 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003779/0.4318, allocations: 2.029 MB / 0.5681 GB, free: 11.14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004498/0.4363, allocations: 2.734 MB / 0.5708 GB, free: 8.402 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001119/0.4375, allocations: 428 kB / 0.5712 GB, free: 7.984 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002951/0.4404, allocations: 1.44 MB / 0.5726 GB, free: 6.543 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002548/0.443, allocations: 2.439 MB / 0.575 GB, free: 4.098 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003597/0.4466, allocations: 2.832 MB / 0.5777 GB, free: 1.25 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01169/0.4583, allocations: 8.931 MB / 0.5865 GB, free: 8.285 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.4584, allocations: 0 / 0.5865 GB, free: 8.285 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4584, allocations: 0 / 0.5865 GB, free: 8.285 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002576/0.4586, allocations: 0 / 0.5865 GB, free: 8.285 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.01923/0.4779, allocations: 6.6 MB / 0.5929 GB, free: 1.602 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.035e-05/0.478, allocations: 12.03 kB / 0.5929 GB, free: 1.59 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002641/0.4806, allocations: 0.9043 MB / 0.5938 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03977/0.5204, allocations: 6.055 MB / 0.5997 GB, free: 10.61 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01037/0.5308, allocations: 4.654 MB / 0.6043 GB, free: 5.898 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002647/0.5311, allocations: 291.4 kB / 0.6045 GB, free: 5.613 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001302/0.5324, allocations: 391.7 kB / 0.6049 GB, free: 5.23 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02247/0.5549, allocations: 11.91 MB / 0.6165 GB, free: 8.535 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001801/0.5551, allocations: 55.53 kB / 0.6166 GB, free: 8.48 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005684/0.5557, allocations: 183.8 kB / 0.6168 GB, free: 8.301 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003618/0.5593, allocations: 2.136 MB / 0.6189 GB, free: 6.164 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02233/0.5817, allocations: 10.17 MB / 0.6288 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06262/0.6444, allocations: 47.13 MB / 0.6748 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01468/0.6591, allocations: 5.786 MB / 0.6805 GB, free: 5.562 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003911/0.663, allocations: 2.935 MB / 0.6833 GB, free: 2.617 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01418/0.6772, allocations: 8.773 MB / 0.6919 GB, free: 9.68 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.594e-05/0.6773, allocations: 55.88 kB / 0.692 GB, free: 9.617 MB / 0.545 GB Notification: Performance of pre-optimization done (n=206): time 6.692e-06/0.6773, allocations: 0 / 0.692 GB, free: 9.617 MB / 0.545 GB Notification: Performance of matching and sorting (n=262): time 0.4042/1.082, allocations: 34.97 MB / 0.7261 GB, free: 162.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/1.082, allocations: 213.3 kB / 0.7263 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007656/1.089, allocations: 4.798 MB / 0.731 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007291/1.09, allocations: 65.05 kB / 0.7311 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00269/1.093, allocations: 3.73 MB / 0.7347 GB, free: 158 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001658/1.094, allocations: 1.004 MB / 0.7357 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001963/1.096, allocations: 1.361 MB / 0.737 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.259e-05/1.097, allocations: 301.1 kB / 0.7373 GB, free: 156.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003743/1.1, allocations: 3.03 MB / 0.7403 GB, free: 155.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005311/1.106, allocations: 6.842 MB / 0.7469 GB, free: 148.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009763/1.115, allocations: 10.67 MB / 0.7574 GB, free: 138.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.929e-05/1.116, allocations: 40 kB / 0.7574 GB, free: 138.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=872) (initialization): time 0.02246/1.138, allocations: 13.22 MB / 0.7703 GB, free: 125.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.65e-05/1.138, allocations: 66.19 kB / 0.7704 GB, free: 125.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001043/1.138, allocations: 132 kB / 0.7705 GB, free: 125.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01068/1.149, allocations: 4.227 MB / 0.7746 GB, free: 120.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004224/1.153, allocations: 1.415 MB / 0.776 GB, free: 119.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03097/1.184, allocations: 28.58 MB / 0.8039 GB, free: 90.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006011/1.19, allocations: 399.5 kB / 0.8043 GB, free: 90.06 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001063/1.191, allocations: 396 kB / 0.8047 GB, free: 89.67 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 606 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (756): * Single equations (assignments): 750 * Array equations: 3 * 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 {(8,50,50.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.00372/1.195, allocations: 2.47 MB / 0.8071 GB, free: 87.19 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001028/1.196, allocations: 472.8 kB / 0.8075 GB, free: 86.73 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01409/1.21, allocations: 8.226 MB / 0.8156 GB, free: 78.47 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-05/1.21, allocations: 28.56 kB / 0.8156 GB, free: 78.45 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-05/1.21, allocations: 12 kB / 0.8156 GB, free: 78.43 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.333e-05/1.21, allocations: 17.27 kB / 0.8156 GB, free: 78.42 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02867/1.239, allocations: 16.74 MB / 0.832 GB, free: 61.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.41e-05/1.239, allocations: 4 kB / 0.832 GB, free: 61.57 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001434/1.241, allocations: 295.6 kB / 0.8323 GB, free: 61.28 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009452/1.25, allocations: 3.798 MB / 0.836 GB, free: 57.47 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005363/1.251, allocations: 59.94 kB / 0.836 GB, free: 57.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02877/1.279, allocations: 27.36 MB / 0.8627 GB, free: 29.64 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.765e-06/1.279, allocations: 15.88 kB / 0.8628 GB, free: 29.62 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01818/1.298, allocations: 12.14 MB / 0.8746 GB, free: 17.34 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002009/1.3, allocations: 0.5018 MB / 0.8751 GB, free: 16.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002252/1.302, allocations: 48.47 kB / 0.8751 GB, free: 16.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003206/1.305, allocations: 167.7 kB / 0.8753 GB, free: 16.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009176/1.306, allocations: 198 kB / 0.8755 GB, free: 16.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002002/1.306, allocations: 72 kB / 0.8756 GB, free: 16.34 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004467/1.311, allocations: 3.039 MB / 0.8785 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.9e-07/1.311, allocations: 3.938 kB / 0.8785 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006947/1.318, allocations: 1.402 MB / 0.8799 GB, free: 11.9 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (158): * Single equations (assignments): 152 * Array equations: 3 * 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 {(8,43,50.0%), (2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01894/1.337, allocations: 12.82 MB / 0.8924 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01515/1.352, allocations: 8.21 MB / 0.9004 GB, free: 6.719 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/1.352, allocations: 0 / 0.9004 GB, free: 6.719 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.006437/1.358, allocations: 3.51 MB / 0.9039 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004118/1.363, allocations: 0.6185 MB / 0.9045 GB, free: 2.559 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3899/1.752, allocations: 64.22 MB / 0.9672 GB, free: 200.9 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003875/1.756, allocations: 3.927 MB / 0.971 GB, free: 199.7 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.003667/1.76, allocations: 2.007 MB / 0.973 GB, free: 199.6 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002302/1.762, allocations: 2.359 MB / 0.9753 GB, free: 197.7 MB / 0.6231 GB Notification: Performance of SimCode: time 1.103e-06/1.762, allocations: 2.562 kB / 0.9753 GB, free: 197.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1537/1.916, allocations: 112.9 MB / 1.086 GB, free: 89.1 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.2/24.12, allocations: 19.11 kB / 1.086 GB, free: 89.08 MB / 0.6231 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_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_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1)