Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json 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/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0016/0.001599, allocations: 193.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 226.5 MB / 243.4 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008458/0.0008457, allocations: 94.53 kB / 295.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3056/0.3056, allocations: 44.83 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000311/0.0003111, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2951/0.2954, allocations: 62.97 MB / 0.516 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.05099/0.3464, allocations: 67.38 MB / 0.5818 GB, free: 4.57 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03467/0.3811, allocations: 14.28 MB / 0.5957 GB, free: 7.562 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01539/0.3966, allocations: 331.1 kB / 0.596 GB, free: 7.238 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01176/0.4084, allocations: 3.522 MB / 0.5995 GB, free: 3.699 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02668/0.4351, allocations: 10.31 MB / 0.6095 GB, free: 9.352 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004955/0.4401, allocations: 0.9752 MB / 0.6105 GB, free: 8.375 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.07577/0.5158, allocations: 63.13 MB / 0.6721 GB, free: 9.164 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01023/0.5261, allocations: 6.769 MB / 0.6787 GB, free: 2.305 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003278/0.5294, allocations: 1.782 MB / 0.6805 GB, free: 0.5156 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2908/0.8203, allocations: 2.836 MB / 0.6833 GB, free: 64.88 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001474/0.8218, allocations: 203.8 kB / 0.6834 GB, free: 64.88 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003345/0.8251, allocations: 1.12 MB / 0.6845 GB, free: 64.88 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002691/0.8279, allocations: 2.411 MB / 0.6869 GB, free: 64.88 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004043/0.8319, allocations: 2.758 MB / 0.6896 GB, free: 64.85 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01061/0.8425, allocations: 7.983 MB / 0.6974 GB, free: 64.36 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.8426, allocations: 0 / 0.6974 GB, free: 64.36 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.8426, allocations: 4.531 kB / 0.6974 GB, free: 64.36 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003526/0.843, allocations: 2.156 kB / 0.6974 GB, free: 64.36 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.01801/0.861, allocations: 5.965 MB / 0.7032 GB, free: 61.86 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.861, allocations: 8.75 kB / 0.7032 GB, free: 61.86 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003706/0.8647, allocations: 0.9411 MB / 0.7041 GB, free: 61.77 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1555/1.02, allocations: 12.88 MB / 0.7167 GB, free: 58.01 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01077/1.031, allocations: 4.98 MB / 0.7216 GB, free: 56.37 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002326/1.031, allocations: 329.4 kB / 0.7219 GB, free: 56.36 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001474/1.033, allocations: 448.5 kB / 0.7223 GB, free: 56.34 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02252/1.055, allocations: 13.14 MB / 0.7352 GB, free: 47.32 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002285/1.056, allocations: 65.97 kB / 0.7352 GB, free: 47.29 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008321/1.056, allocations: 208.3 kB / 0.7354 GB, free: 47.23 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004089/1.061, allocations: 2.591 MB / 0.738 GB, free: 45.09 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02/1.081, allocations: 11.26 MB / 0.7489 GB, free: 37.38 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05899/1.14, allocations: 52.83 MB / 0.8005 GB, free: 9.297 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0134/1.153, allocations: 5.532 MB / 0.8059 GB, free: 5.023 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004446/1.157, allocations: 3.375 MB / 0.8092 GB, free: 3.047 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007904/1.158, allocations: 0.6935 MB / 0.8099 GB, free: 2.285 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.616e-05/1.158, allocations: 54.62 kB / 0.81 GB, free: 2.238 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=245): time 5.831e-06/1.158, allocations: 0 / 0.81 GB, free: 2.238 MB / 0.4948 GB Notification: Performance of matching and sorting (n=315): time 0.1014/1.26, allocations: 35.07 MB / 0.8442 GB, free: 15.21 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000151/1.26, allocations: 272.2 kB / 0.8445 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008364/1.268, allocations: 5.206 MB / 0.8496 GB, free: 9.699 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0008828/1.269, allocations: 73.7 kB / 0.8496 GB, free: 9.621 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.003022/1.272, allocations: 3.963 MB / 0.8535 GB, free: 5.68 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001676/1.274, allocations: 1.173 MB / 0.8546 GB, free: 4.516 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004763/1.275, allocations: 148 kB / 0.8548 GB, free: 4.371 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0004021/1.275, allocations: 0.6281 MB / 0.8554 GB, free: 3.738 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005168/1.28, allocations: 3.38 MB / 0.8587 GB, free: 364 kB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008047/1.288, allocations: 7.549 MB / 0.8661 GB, free: 6.84 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01388/1.302, allocations: 11.85 MB / 0.8776 GB, free: 9.531 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001064/1.302, allocations: 40 kB / 0.8777 GB, free: 9.492 MB / 0.573 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.02305/1.325, allocations: 12.7 MB / 0.8901 GB, free: 13.63 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.000152/1.326, allocations: 71.12 kB / 0.8902 GB, free: 13.56 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002078/1.326, allocations: 144 kB / 0.8903 GB, free: 13.42 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0056/1.331, allocations: 2.243 MB / 0.8925 GB, free: 11.17 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005818/1.337, allocations: 1.721 MB / 0.8942 GB, free: 9.594 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2653/1.602, allocations: 15.28 MB / 0.9091 GB, free: 224 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006795/1.609, allocations: 450.4 kB / 0.9095 GB, free: 223.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001639/1.611, allocations: 446 kB / 0.9099 GB, free: 223.9 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.arrowLine.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 (909): * Single equations (assignments): 904 * 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.006804/1.618, allocations: 2.771 MB / 0.9126 GB, free: 222.8 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001933/1.62, allocations: 490.4 kB / 0.9131 GB, free: 222.8 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01505/1.635, allocations: 7.281 MB / 0.9202 GB, free: 220 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.636e-05/1.635, allocations: 36.47 kB / 0.9203 GB, free: 220 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.992e-05/1.635, allocations: 10.38 kB / 0.9203 GB, free: 220 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.359e-05/1.635, allocations: 18.12 kB / 0.9203 GB, free: 220 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03906/1.674, allocations: 16.4 MB / 0.9363 GB, free: 213.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-05/1.674, allocations: 7.875 kB / 0.9363 GB, free: 213.8 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002586/1.677, allocations: 0.4934 MB / 0.9368 GB, free: 213.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005028/1.682, allocations: 1.998 MB / 0.9387 GB, free: 213.3 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006792/1.683, allocations: 69.52 kB / 0.9388 GB, free: 213.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01698/1.7, allocations: 13.76 MB / 0.9522 GB, free: 206.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-05/1.7, allocations: 12.98 kB / 0.9523 GB, free: 206.6 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01835/1.718, allocations: 11.63 MB / 0.9636 GB, free: 199.5 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001944/1.72, allocations: 0.5373 MB / 0.9641 GB, free: 199 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002014/1.722, allocations: 59.56 kB / 0.9642 GB, free: 199 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003801/1.726, allocations: 224.2 kB / 0.9644 GB, free: 198.9 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001173/1.727, allocations: 201.3 kB / 0.9646 GB, free: 198.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005301/1.728, allocations: 87.33 kB / 0.9647 GB, free: 198.6 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.006737/1.734, allocations: 3.301 MB / 0.9679 GB, free: 195.9 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.11e-07/1.734, allocations: 0 / 0.9679 GB, free: 195.9 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.008764/1.743, allocations: 1.487 MB / 0.9694 GB, free: 194.5 MB / 0.5886 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 (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.01781/1.761, allocations: 12.33 MB / 0.9814 GB, free: 182.1 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01233/1.773, allocations: 8.402 MB / 0.9896 GB, free: 173.7 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.15e-05/1.773, allocations: 6.156 kB / 0.9896 GB, free: 173.7 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.006965/1.78, allocations: 4.045 MB / 0.9936 GB, free: 169.7 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00922/1.79, allocations: 0.665 MB / 0.9942 GB, free: 169 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08523/1.875, allocations: 55.81 MB / 1.049 GB, free: 108.5 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005039/1.88, allocations: 4.332 MB / 1.053 GB, free: 104.1 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003592/1.884, allocations: 2.788 MB / 1.056 GB, free: 101.3 MB / 0.5886 GB Notification: Performance of SimCode: time 7.51e-07/1.884, allocations: 0 / 1.056 GB, free: 101.3 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.699/11.58, allocations: 156 MB / 1.208 GB, free: 195.1 MB / 0.5886 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1)