Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_FourbarVariants_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001639/0.001639, allocations: 118.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001775/0.001775, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, 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.2315/0.2315, allocations: 46.11 MB / 344.3 MB, free: 11.44 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.002526/0.002527, allocations: 83.86 kB / 480.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3624/0.3649, allocations: 62.43 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01895/0.3839, allocations: 15.01 MB / 0.5452 GB, free: 1.578 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01195/0.3959, allocations: 4.825 MB / 0.55 GB, free: 13.79 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004331/0.4003, allocations: 92.69 kB / 0.55 GB, free: 13.73 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007272/0.4077, allocations: 3.153 MB / 0.5531 GB, free: 10.56 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008281/0.416, allocations: 2.521 MB / 0.5556 GB, free: 8.035 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003076/0.4191, allocations: 0.9787 MB / 0.5565 GB, free: 7.055 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01093/0.43, allocations: 7.04 MB / 0.5634 GB, free: 0 / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00591/0.436, allocations: 4.373 MB / 0.5677 GB, free: 11.56 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003793/0.4398, allocations: 2.215 MB / 0.5698 GB, free: 9.34 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0048/0.4446, allocations: 3.236 MB / 0.573 GB, free: 6.094 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001288/0.4459, allocations: 488 kB / 0.5735 GB, free: 5.617 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003213/0.4492, allocations: 1.479 MB / 0.5749 GB, free: 4.137 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003565/0.4527, allocations: 2.84 MB / 0.5777 GB, free: 1.289 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005215/0.458, allocations: 3.285 MB / 0.5809 GB, free: 13.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0156/0.4736, allocations: 10.56 MB / 0.5912 GB, free: 3.383 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.006e-05/0.4737, allocations: 0 / 0.5912 GB, free: 3.383 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.4737, allocations: 0 / 0.5912 GB, free: 3.383 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004665/0.4742, allocations: 4 kB / 0.5912 GB, free: 3.379 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02171/0.4959, allocations: 7.655 MB / 0.5987 GB, free: 11.62 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.496, allocations: 8.031 kB / 0.5987 GB, free: 11.62 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003458/0.4994, allocations: 1.137 MB / 0.5998 GB, free: 10.46 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04582/0.5453, allocations: 7.505 MB / 0.6071 GB, free: 2.945 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01202/0.5573, allocations: 4.721 MB / 0.6117 GB, free: 14.16 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004477/0.5578, allocations: 316.2 kB / 0.612 GB, free: 13.85 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002167/0.56, allocations: 435.7 kB / 0.6125 GB, free: 13.43 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03117/0.5912, allocations: 15.63 MB / 0.6277 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000204/0.5914, allocations: 67.45 kB / 0.6278 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000774/0.5922, allocations: 199.8 kB / 0.628 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0055/0.5977, allocations: 3.216 MB / 0.6311 GB, free: 9.387 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03119/0.6289, allocations: 13.95 MB / 0.6447 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09242/0.7214, allocations: 57.2 MB / 0.7006 GB, free: 0.6602 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.015/0.7365, allocations: 6.526 MB / 0.707 GB, free: 9.875 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00581/0.7423, allocations: 3.629 MB / 0.7105 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2806/1.023, allocations: 14.43 MB / 0.7246 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.839e-05/1.023, allocations: 58.94 kB / 0.7247 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=289): time 7.053e-06/1.023, allocations: 0 / 0.7247 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=339): time 0.1333/1.156, allocations: 42.09 MB / 0.7658 GB, free: 130.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.848e-05/1.156, allocations: 210 kB / 0.766 GB, free: 130.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00656/1.163, allocations: 5.492 MB / 0.7713 GB, free: 124.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008056/1.164, allocations: 69.7 kB / 0.7714 GB, free: 124.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002001/1.166, allocations: 4.591 MB / 0.7759 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001311/1.167, allocations: 1.307 MB / 0.7772 GB, free: 119.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002188/1.169, allocations: 1.794 MB / 0.7789 GB, free: 117.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.088e-05/1.169, allocations: 305.1 kB / 0.7792 GB, free: 117.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005413/1.175, allocations: 4.651 MB / 0.7837 GB, free: 112.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007016/1.182, allocations: 9.607 MB / 0.7931 GB, free: 100.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01359/1.196, allocations: 15.3 MB / 0.8081 GB, free: 82.69 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001544/1.196, allocations: 52 kB / 0.8081 GB, free: 82.64 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.03974/1.236, allocations: 19.03 MB / 0.8267 GB, free: 63.57 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002003/1.236, allocations: 80.22 kB / 0.8268 GB, free: 63.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002538/1.236, allocations: 176 kB / 0.8269 GB, free: 63.32 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02103/1.257, allocations: 5.781 MB / 0.8326 GB, free: 57.53 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006944/1.264, allocations: 2.063 MB / 0.8346 GB, free: 55.46 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02763/1.292, allocations: 25.67 MB / 0.8597 GB, free: 29.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0079/1.3, allocations: 0.5462 MB / 0.8602 GB, free: 28.95 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001908/1.302, allocations: 0.5039 MB / 0.8607 GB, free: 28.45 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1058): * Single equations (assignments): 1050 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007315/1.309, allocations: 3.101 MB / 0.8637 GB, free: 25.34 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001687/1.311, allocations: 0.5277 MB / 0.8642 GB, free: 24.81 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02958/1.34, allocations: 12.68 MB / 0.8766 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.727e-05/1.34, allocations: 59.66 kB / 0.8767 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.017e-05/1.34, allocations: 12 kB / 0.8767 GB, free: 12 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.005e-05/1.34, allocations: 11.95 kB / 0.8767 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05045/1.391, allocations: 24.3 MB / 0.9004 GB, free: 3.199 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.803e-05/1.391, allocations: 7.938 kB / 0.9004 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003407/1.394, allocations: 0.5733 MB / 0.901 GB, free: 2.617 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02085/1.415, allocations: 4.808 MB / 0.9057 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007118/1.416, allocations: 58.91 kB / 0.9057 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03108/1.447, allocations: 20.92 MB / 0.9262 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.708e-06/1.447, allocations: 11.94 kB / 0.9262 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03862/1.486, allocations: 17.15 MB / 0.9429 GB, free: 7.227 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001568/1.487, allocations: 0.552 MB / 0.9435 GB, free: 6.652 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001441/1.489, allocations: 59.98 kB / 0.9435 GB, free: 6.594 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003675/1.493, allocations: 251.6 kB / 0.9438 GB, free: 6.348 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001103/1.494, allocations: 201.6 kB / 0.944 GB, free: 6.148 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004247/1.494, allocations: 83.91 kB / 0.944 GB, free: 6.07 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.007671/1.502, allocations: 3.42 MB / 0.9474 GB, free: 2.672 MB / 0.6231 GB Notification: Performance of sort global known variables: time 7.41e-07/1.502, allocations: 0 / 0.9474 GB, free: 2.672 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.2934/1.795, allocations: 1.679 MB / 0.949 GB, free: 206.7 MB / 0.6231 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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03505/1.83, allocations: 17.8 MB / 0.9664 GB, free: 202 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01678/1.847, allocations: 10.69 MB / 0.9768 GB, free: 198 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-05/1.847, allocations: 0 / 0.9768 GB, free: 198 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.005372/1.853, allocations: 4.06 MB / 0.9808 GB, free: 196.3 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004182/1.857, allocations: 0.6438 MB / 0.9814 GB, free: 196 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1309/1.988, allocations: 86.34 MB / 1.066 GB, free: 106.2 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005101/1.993, allocations: 4.608 MB / 1.07 GB, free: 101.6 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.006452/1.999, allocations: 2.998 MB / 1.073 GB, free: 98.55 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005013/2.004, allocations: 2.913 MB / 1.076 GB, free: 95.64 MB / 0.6231 GB Notification: Performance of SimCode: time 2.174e-06/2.004, allocations: 4 kB / 1.076 GB, free: 95.64 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4695/2.474, allocations: 125.6 MB / 1.199 GB, free: 214 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 41.55/44.02, allocations: 9.031 kB / 1.199 GB, free: 213.9 MB / 0.6387 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_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_UniversalSpherical.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1)