Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009132/0.0009132, allocations: 175 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.369/1.369, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008007/0.0008007, allocations: 81.05 kB / 271.2 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3331/0.3331, allocations: 43.57 MB / 363.1 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003579, allocations: 12 kB / 432.1 MB, free: 5.488 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1067, allocations: 58.86 MB / 490.9 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.2429/0.3496, allocations: 67.76 MB / 0.5456 GB, free: 1.984 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03209/0.3817, allocations: 14.31 MB / 0.5596 GB, free: 8.195 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.014/0.3958, allocations: 329.7 kB / 0.5599 GB, free: 8.141 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01135/0.4072, allocations: 3.542 MB / 0.5633 GB, free: 6.879 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02977/0.437, allocations: 10.38 MB / 0.5735 GB, free: 2.281 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005177/0.4422, allocations: 0.9851 MB / 0.5744 GB, free: 1.633 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.04425/0.4865, allocations: 35.9 MB / 0.6095 GB, free: 0.6797 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01063/0.4971, allocations: 6.843 MB / 0.6162 GB, free: 9.781 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003835/0.501, allocations: 1.841 MB / 0.618 GB, free: 7.934 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004389/0.5054, allocations: 2.925 MB / 0.6208 GB, free: 5 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001264/0.5067, allocations: 212 kB / 0.621 GB, free: 4.793 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002984/0.5097, allocations: 1.135 MB / 0.6221 GB, free: 3.656 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003134/0.5129, allocations: 2.47 MB / 0.6246 GB, free: 1.18 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003912/0.5168, allocations: 2.829 MB / 0.6273 GB, free: 14.32 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007816/0.5246, allocations: 8.191 MB / 0.6353 GB, free: 6.117 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.5247, allocations: 4 kB / 0.6353 GB, free: 6.113 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.5247, allocations: 0 / 0.6353 GB, free: 6.113 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002737/0.525, allocations: 0 / 0.6353 GB, free: 6.113 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2030 * Number of variables: 2030 Notification: Performance of Generate backend data structure: time 0.01461/0.5396, allocations: 6.049 MB / 0.6412 GB, free: 15.98 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.5396, allocations: 11.97 kB / 0.6412 GB, free: 15.97 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00288/0.5425, allocations: 0.9554 MB / 0.6422 GB, free: 15.01 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.157/0.6996, allocations: 12.91 MB / 0.6548 GB, free: 2.074 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01144/0.7111, allocations: 5.662 MB / 0.6603 GB, free: 12.32 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003234/0.7114, allocations: 336.5 kB / 0.6606 GB, free: 11.99 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001537/0.713, allocations: 463.5 kB / 0.6611 GB, free: 11.54 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2147/0.9277, allocations: 13.42 MB / 0.6742 GB, free: 135.4 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003911/0.9281, allocations: 68.08 kB / 0.6742 GB, free: 135.4 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00138/0.9295, allocations: 210.7 kB / 0.6744 GB, free: 135.4 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005447/0.935, allocations: 2.654 MB / 0.677 GB, free: 135.3 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02273/0.9577, allocations: 11.54 MB / 0.6883 GB, free: 132.9 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06135/1.019, allocations: 53.73 MB / 0.7408 GB, free: 96.6 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01277/1.032, allocations: 5.636 MB / 0.7463 GB, free: 94.01 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003883/1.036, allocations: 3.427 MB / 0.7496 GB, free: 92.21 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006168/1.036, allocations: 0.6864 MB / 0.7503 GB, free: 91.56 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.749e-05/1.037, allocations: 66.78 kB / 0.7504 GB, free: 91.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=254): time 4.499e-06/1.037, allocations: 0 / 0.7504 GB, free: 91.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=324): time 0.08699/1.124, allocations: 35.64 MB / 0.7852 GB, free: 58.61 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.993e-05/1.124, allocations: 269.3 kB / 0.7854 GB, free: 58.29 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00635/1.13, allocations: 5.329 MB / 0.7906 GB, free: 52.97 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008289/1.131, allocations: 77.7 kB / 0.7907 GB, free: 52.89 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001985/1.133, allocations: 4.043 MB / 0.7947 GB, free: 48.85 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001454/1.134, allocations: 1.201 MB / 0.7958 GB, free: 47.66 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004091/1.135, allocations: 148 kB / 0.796 GB, free: 47.51 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002987/1.135, allocations: 0.6325 MB / 0.7966 GB, free: 46.88 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004259/1.139, allocations: 3.443 MB / 0.7999 GB, free: 43.43 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006181/1.146, allocations: 7.694 MB / 0.8075 GB, free: 33.66 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01173/1.157, allocations: 12.06 MB / 0.8192 GB, free: 19.49 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001004/1.157, allocations: 44 kB / 0.8193 GB, free: 19.45 MB / 490.7 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.02144/1.179, allocations: 12.91 MB / 0.8319 GB, free: 6.488 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.652e-05/1.179, allocations: 68 kB / 0.8319 GB, free: 6.422 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001658/1.179, allocations: 148.8 kB / 0.8321 GB, free: 6.277 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005153/1.184, allocations: 2.249 MB / 0.8343 GB, free: 4.023 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005589/1.19, allocations: 1.767 MB / 0.836 GB, free: 2.254 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01891/1.209, allocations: 15.28 MB / 0.8509 GB, free: 2.707 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006266/1.215, allocations: 465.8 kB / 0.8514 GB, free: 2.254 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001409/1.217, allocations: 455.9 kB / 0.8518 GB, free: 1.809 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 672 * Number of states: 0 () * Number of discrete variables: 42 (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 (931): * Single equations (assignments): 926 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006063/1.223, allocations: 2.821 MB / 0.8546 GB, free: 14.97 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00138/1.224, allocations: 0.4898 MB / 0.8551 GB, free: 14.48 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01514/1.239, allocations: 7.416 MB / 0.8623 GB, free: 6.992 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.771e-05/1.239, allocations: 32 kB / 0.8623 GB, free: 6.961 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.282e-05/1.239, allocations: 15.94 kB / 0.8623 GB, free: 6.945 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.752e-05/1.24, allocations: 15.94 kB / 0.8624 GB, free: 6.93 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2451/1.485, allocations: 16.65 MB / 0.8786 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.126e-05/1.485, allocations: 11.84 kB / 0.8786 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002442/1.487, allocations: 0.5138 MB / 0.8791 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004957/1.492, allocations: 2.007 MB / 0.8811 GB, free: 154.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004632/1.493, allocations: 65.67 kB / 0.8811 GB, free: 154.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01569/1.508, allocations: 13.75 MB / 0.8946 GB, free: 147.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-06/1.508, allocations: 17.28 kB / 0.8946 GB, free: 147.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01609/1.524, allocations: 11.8 MB / 0.9061 GB, free: 142.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002784/1.527, allocations: 1.089 MB / 0.9072 GB, free: 142.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009691/1.528, allocations: 67.75 kB / 0.9072 GB, free: 142.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002691/1.531, allocations: 224.1 kB / 0.9075 GB, free: 142.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008203/1.532, allocations: 207.8 kB / 0.9077 GB, free: 142.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002394/1.532, allocations: 89.33 kB / 0.9077 GB, free: 142.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006007/1.538, allocations: 3.367 MB / 0.911 GB, free: 141.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.01e-07/1.538, allocations: 0 / 0.911 GB, free: 141.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007896/1.546, allocations: 1.517 MB / 0.9125 GB, free: 141.1 MB / 0.5105 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 (263): * Single equations (assignments): 258 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01888/1.565, allocations: 12.51 MB / 0.9247 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01214/1.577, allocations: 8.56 MB / 0.9331 GB, free: 131.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.445e-05/1.577, allocations: 7.875 kB / 0.9331 GB, free: 131.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006844/1.584, allocations: 4.09 MB / 0.9371 GB, free: 128.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009492/1.593, allocations: 0.6728 MB / 0.9378 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08624/1.68, allocations: 57.1 MB / 0.9935 GB, free: 67.48 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004491/1.684, allocations: 4.417 MB / 0.9978 GB, free: 63.02 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003609/1.688, allocations: 2.878 MB / 1.001 GB, free: 60.14 MB / 0.5105 GB Notification: Performance of SimCode: time 1.603e-06/1.688, allocations: 0 / 1.001 GB, free: 60.14 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.86/11.55, allocations: 159.3 MB / 1.156 GB, free: 89.51 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1)