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.001286/0.001293, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001405/0.001406, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.4 MB / 246.8 MB, free: 10.61 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.2294/0.2294, allocations: 46.11 MB / 344.2 MB, free: 11.59 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.002495/0.002495, allocations: 76.84 kB / 417.8 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.143, allocations: 62.46 MB / 480.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01803/0.1611, allocations: 14.65 MB / 494.9 MB, free: 6.438 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01161/0.1727, allocations: 4.996 MB / 499.9 MB, free: 1.426 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003338/0.1761, allocations: 99.69 kB / 500 MB, free: 1.328 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00841/0.1846, allocations: 4.139 MB / 0.4923 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007507/0.1921, allocations: 2.314 MB / 0.4945 GB, free: 10.85 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002826/0.195, allocations: 1.08 MB / 0.4956 GB, free: 9.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01068/0.2057, allocations: 7.156 MB / 0.5026 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2584/0.4641, allocations: 5.132 MB / 0.5076 GB, free: 14.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005918/0.4701, allocations: 2.212 MB / 0.5098 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006895/0.4771, allocations: 3.053 MB / 0.5127 GB, free: 13.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002666/0.4798, allocations: 496.4 kB / 0.5132 GB, free: 13.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005644/0.4854, allocations: 1.361 MB / 0.5145 GB, free: 13.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005561/0.491, allocations: 2.723 MB / 0.5172 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009024/0.5001, allocations: 3.268 MB / 0.5204 GB, free: 12.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0158/0.5159, allocations: 9.843 MB / 0.53 GB, free: 8.934 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.066e-05/0.516, allocations: 4 kB / 0.53 GB, free: 8.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.516, allocations: 0 / 0.53 GB, free: 8.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004445/0.5165, allocations: 1.375 kB / 0.53 GB, free: 8.93 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.02689/0.5434, allocations: 7.114 MB / 0.537 GB, free: 4.211 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.354e-05/0.5434, allocations: 13.25 kB / 0.537 GB, free: 4.207 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003442/0.5469, allocations: 0.9293 MB / 0.5379 GB, free: 3.602 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1791/0.726, allocations: 12.52 MB / 0.5501 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01475/0.7408, allocations: 4.966 MB / 0.555 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004637/0.7413, allocations: 320.9 kB / 0.5553 GB, free: 6.094 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002792/0.7441, allocations: 458.1 kB / 0.5557 GB, free: 5.688 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03247/0.7766, allocations: 12.95 MB / 0.5683 GB, free: 8.094 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002768/0.7769, allocations: 70.7 kB / 0.5684 GB, free: 8.051 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001112/0.778, allocations: 212.1 kB / 0.5686 GB, free: 7.887 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00499/0.783, allocations: 2.527 MB / 0.5711 GB, free: 5.395 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02393/0.807, allocations: 11.13 MB / 0.5819 GB, free: 10.49 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07947/0.8865, allocations: 52.36 MB / 0.6331 GB, free: 5.312 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01566/0.9022, allocations: 5.535 MB / 0.6385 GB, free: 15.64 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00513/0.9074, allocations: 3.381 MB / 0.6418 GB, free: 12.26 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009213/0.9083, allocations: 0.6842 MB / 0.6425 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.887e-05/0.9084, allocations: 70.33 kB / 0.6425 GB, free: 11.41 MB / 494.1 MB Notification: Performance of pre-optimization done (n=245): time 7.344e-06/0.9084, allocations: 0 / 0.6425 GB, free: 11.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=315): time 0.1175/1.026, allocations: 35 MB / 0.6767 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002234/1.026, allocations: 264 kB / 0.677 GB, free: 8.031 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01394/1.04, allocations: 5.189 MB / 0.682 GB, free: 2.852 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0009327/1.041, allocations: 73.7 kB / 0.6821 GB, free: 2.773 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.005188/1.046, allocations: 3.921 MB / 0.6859 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002481/1.049, allocations: 1.168 MB / 0.6871 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005889/1.055, allocations: 1.515 MB / 0.6885 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002653/1.055, allocations: 305.1 kB / 0.6888 GB, free: 11.87 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007506/1.063, allocations: 3.403 MB / 0.6922 GB, free: 8.465 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01224/1.075, allocations: 7.558 MB / 0.6995 GB, free: 14.95 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01887/1.094, allocations: 11.86 MB / 0.7111 GB, free: 1.633 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00015/1.094, allocations: 40 kB / 0.7112 GB, free: 1.594 MB / 0.545 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.3125/1.406, allocations: 12.72 MB / 0.7236 GB, free: 185.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001175/1.407, allocations: 66.19 kB / 0.7236 GB, free: 185.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002678/1.407, allocations: 148.2 kB / 0.7238 GB, free: 185.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006449/1.413, allocations: 2.259 MB / 0.726 GB, free: 185.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006888/1.42, allocations: 1.715 MB / 0.7277 GB, free: 185 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01825/1.439, allocations: 16.4 MB / 0.7437 GB, free: 176.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006561/1.445, allocations: 450.7 kB / 0.7441 GB, free: 176.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001015/1.446, allocations: 446.7 kB / 0.7445 GB, free: 176.4 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.004696/1.451, allocations: 2.734 MB / 0.7472 GB, free: 175.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009923/1.452, allocations: 496.5 kB / 0.7477 GB, free: 175.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01141/1.463, allocations: 7.3 MB / 0.7548 GB, free: 170.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-05/1.463, allocations: 36.94 kB / 0.7548 GB, free: 170.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-05/1.463, allocations: 8 kB / 0.7549 GB, free: 170.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.497e-05/1.463, allocations: 13.97 kB / 0.7549 GB, free: 170.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02962/1.493, allocations: 16.35 MB / 0.7708 GB, free: 156.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.48e-05/1.493, allocations: 14.56 kB / 0.7708 GB, free: 156.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002455/1.496, allocations: 0.4915 MB / 0.7713 GB, free: 156 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004657/1.5, allocations: 2.005 MB / 0.7733 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005717/1.501, allocations: 68.86 kB / 0.7733 GB, free: 153.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01687/1.518, allocations: 14.8 MB / 0.7878 GB, free: 138.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/1.518, allocations: 8 kB / 0.7878 GB, free: 138.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01556/1.533, allocations: 11.65 MB / 0.7992 GB, free: 127.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001742/1.535, allocations: 0.5298 MB / 0.7997 GB, free: 126.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001508/1.537, allocations: 59.98 kB / 0.7998 GB, free: 126.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003709/1.54, allocations: 215.6 kB / 0.8 GB, free: 126.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007399/1.541, allocations: 201.6 kB / 0.8002 GB, free: 126.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002479/1.541, allocations: 84 kB / 0.8002 GB, free: 126 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005055/1.546, allocations: 3.29 MB / 0.8034 GB, free: 122.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.41e-07/1.547, allocations: 4 kB / 0.8035 GB, free: 122.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007962/1.554, allocations: 1.464 MB / 0.8049 GB, free: 121.3 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.01518/1.57, allocations: 12.35 MB / 0.8169 GB, free: 108.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01724/1.587, allocations: 11.93 MB / 0.8286 GB, free: 96.84 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.231e-05/1.587, allocations: 4.125 kB / 0.8286 GB, free: 96.84 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006792/1.594, allocations: 4.09 MB / 0.8326 GB, free: 92.73 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004666/1.599, allocations: 0.7089 MB / 0.8333 GB, free: 92.05 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1192/1.718, allocations: 79.7 MB / 0.9111 GB, free: 2.488 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2781/1.996, allocations: 4.271 MB / 0.9153 GB, free: 186.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.009276/2.005, allocations: 2.461 MB / 0.9177 GB, free: 186.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005928/2.011, allocations: 2.712 MB / 0.9203 GB, free: 186.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.393e-06/2.011, allocations: 0 / 0.9203 GB, free: 186.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1996/2.211, allocations: 116.3 MB / 1.034 GB, free: 92.31 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/14.96, allocations: 13.16 kB / 1.034 GB, free: 92.3 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1)