Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.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.FreeMotion2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001837/0.001837, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002133/0.002133, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.534/1.534, allocations: 227.4 MB / 246.8 MB, free: 10.48 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.2365/0.2365, allocations: 46.11 MB / 344.2 MB, free: 11.52 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.002815/0.002816, allocations: 86.55 kB / 417.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1322, allocations: 62.45 MB / 480.2 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01767/0.1499, allocations: 14.66 MB / 494.9 MB, free: 6.371 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01166/0.1617, allocations: 4.996 MB / 499.9 MB, free: 1.359 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003269/0.165, allocations: 103.7 kB / 500 MB, free: 1.258 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008511/0.1736, allocations: 4.139 MB / 0.4923 GB, free: 13.11 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007179/0.1808, allocations: 2.313 MB / 0.4946 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003084/0.1839, allocations: 1.08 MB / 0.4956 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01137/0.1953, allocations: 7.148 MB / 0.5026 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2643/0.4597, allocations: 5.141 MB / 0.5076 GB, free: 14.42 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007257/0.467, allocations: 2.217 MB / 0.5098 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007765/0.4748, allocations: 3.05 MB / 0.5128 GB, free: 13.97 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00336/0.4783, allocations: 496.6 kB / 0.5132 GB, free: 13.97 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00613/0.4844, allocations: 1.362 MB / 0.5146 GB, free: 13.97 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006153/0.4906, allocations: 2.722 MB / 0.5172 GB, free: 13.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01018/0.5008, allocations: 3.269 MB / 0.5204 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01651/0.5174, allocations: 9.847 MB / 0.53 GB, free: 8.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.5174, allocations: 0 / 0.53 GB, free: 8.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.5174, allocations: 0 / 0.53 GB, free: 8.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004046/0.5179, allocations: 1.375 kB / 0.53 GB, free: 8.91 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: 1953 * Number of variables: 1953 Notification: Performance of Generate backend data structure: time 0.02827/0.5461, allocations: 7.116 MB / 0.537 GB, free: 4.184 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.718e-05/0.5462, allocations: 10 kB / 0.537 GB, free: 4.184 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003657/0.5499, allocations: 0.9254 MB / 0.5379 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1706/0.7205, allocations: 12.52 MB / 0.5501 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0152/0.7357, allocations: 4.965 MB / 0.555 GB, free: 6.246 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004285/0.7362, allocations: 328.9 kB / 0.5553 GB, free: 5.965 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002897/0.7391, allocations: 450 kB / 0.5557 GB, free: 5.566 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03402/0.7732, allocations: 12.96 MB / 0.5684 GB, free: 7.969 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003627/0.7736, allocations: 67.98 kB / 0.5684 GB, free: 7.926 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001698/0.7753, allocations: 202.7 kB / 0.5686 GB, free: 7.77 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005217/0.7805, allocations: 2.532 MB / 0.5711 GB, free: 5.273 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02631/0.8069, allocations: 11.13 MB / 0.582 GB, free: 10.37 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08942/0.8963, allocations: 52.36 MB / 0.6331 GB, free: 5.188 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01557/0.9119, allocations: 5.537 MB / 0.6385 GB, free: 15.51 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005837/0.9178, allocations: 3.384 MB / 0.6418 GB, free: 12.13 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001075/0.9189, allocations: 0.6927 MB / 0.6425 GB, free: 11.34 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.939e-05/0.9191, allocations: 55.19 kB / 0.6425 GB, free: 11.29 MB / 494.1 MB Notification: Performance of pre-optimization done (n=245): time 7.074e-06/0.9191, allocations: 0 / 0.6425 GB, free: 11.29 MB / 494.1 MB Notification: Performance of matching and sorting (n=315): time 0.1158/1.035, allocations: 34.98 MB / 0.6767 GB, free: 8.227 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000196/1.035, allocations: 261.3 kB / 0.6769 GB, free: 7.914 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01241/1.048, allocations: 5.193 MB / 0.682 GB, free: 2.73 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0009553/1.049, allocations: 77.61 kB / 0.6821 GB, free: 2.652 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.005321/1.054, allocations: 3.922 MB / 0.6859 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002333/1.056, allocations: 1.17 MB / 0.6871 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005414/1.062, allocations: 1.52 MB / 0.6885 GB, free: 12.04 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001475/1.062, allocations: 301.1 kB / 0.6888 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006937/1.069, allocations: 3.403 MB / 0.6922 GB, free: 8.34 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01241/1.081, allocations: 7.557 MB / 0.6995 GB, free: 14.82 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01927/1.101, allocations: 11.85 MB / 0.7111 GB, free: 1.512 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001526/1.101, allocations: 44 kB / 0.7112 GB, free: 1.469 MB / 0.545 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.2743/1.375, allocations: 12.72 MB / 0.7236 GB, free: 185.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001208/1.375, allocations: 69.56 kB / 0.7236 GB, free: 185.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002347/1.375, allocations: 143.2 kB / 0.7238 GB, free: 185.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006447/1.382, allocations: 2.256 MB / 0.726 GB, free: 184.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007983/1.39, allocations: 1.716 MB / 0.7277 GB, free: 184.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02096/1.411, allocations: 16.41 MB / 0.7437 GB, free: 176.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007202/1.418, allocations: 448.6 kB / 0.7441 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001698/1.42, allocations: 447.9 kB / 0.7445 GB, free: 176.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 656 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (906): * Single equations (assignments): 901 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,24,100.0%), (3,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005907/1.426, allocations: 2.729 MB / 0.7472 GB, free: 174.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00111/1.427, allocations: 490.5 kB / 0.7477 GB, free: 174.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01201/1.439, allocations: 7.3 MB / 0.7548 GB, free: 170.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.215e-05/1.439, allocations: 37.38 kB / 0.7548 GB, free: 170.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.819e-05/1.439, allocations: 13.19 kB / 0.7549 GB, free: 170.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.708e-05/1.439, allocations: 14.81 kB / 0.7549 GB, free: 170.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02588/1.465, allocations: 16.35 MB / 0.7708 GB, free: 156.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.236e-05/1.465, allocations: 4 kB / 0.7708 GB, free: 156.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00247/1.468, allocations: 0.4915 MB / 0.7713 GB, free: 155.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00507/1.473, allocations: 2.012 MB / 0.7733 GB, free: 153.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006028/1.473, allocations: 63.98 kB / 0.7733 GB, free: 153.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01601/1.489, allocations: 14.81 MB / 0.7878 GB, free: 138.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/1.489, allocations: 4 kB / 0.7878 GB, free: 138.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01508/1.504, allocations: 11.66 MB / 0.7992 GB, free: 127 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002018/1.507, allocations: 0.526 MB / 0.7997 GB, free: 126.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009625/1.508, allocations: 60 kB / 0.7998 GB, free: 126.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002515/1.51, allocations: 215.7 kB / 0.8 GB, free: 126.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006236/1.511, allocations: 202.6 kB / 0.8002 GB, free: 126 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002158/1.511, allocations: 91.81 kB / 0.8002 GB, free: 125.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005012/1.516, allocations: 3.29 MB / 0.8035 GB, free: 122.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.9e-07/1.516, allocations: 0 / 0.8035 GB, free: 122.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007568/1.523, allocations: 1.466 MB / 0.8049 GB, free: 121.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (253): * Single equations (assignments): 248 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,17,46.9%), (7,17,46.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01533/1.539, allocations: 12.35 MB / 0.8169 GB, free: 108.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01721/1.556, allocations: 11.92 MB / 0.8286 GB, free: 96.67 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.338e-05/1.556, allocations: 8 kB / 0.8286 GB, free: 96.66 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00698/1.563, allocations: 4.088 MB / 0.8326 GB, free: 92.55 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004988/1.568, allocations: 0.6998 MB / 0.8333 GB, free: 91.87 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1132/1.681, allocations: 79.71 MB / 0.9111 GB, free: 2.312 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2308/1.912, allocations: 4.275 MB / 0.9153 GB, free: 186.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.009085/1.921, allocations: 2.46 MB / 0.9177 GB, free: 186.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004907/1.926, allocations: 2.71 MB / 0.9203 GB, free: 186.3 MB / 0.545 GB Notification: Performance of SimCode: time 7.92e-07/1.926, allocations: 0 / 0.9203 GB, free: 186.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.222/2.148, allocations: 116.3 MB / 1.034 GB, free: 92.14 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/15.05, allocations: 13.03 kB / 1.034 GB, free: 92.13 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1)