Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion.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.FreeMotion,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001922/0.001922, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002392/0.002392, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 247 MB, free: 10.39 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.2351/0.2351, allocations: 46.12 MB / 344.3 MB, free: 11.45 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.002324/0.002324, allocations: 79.88 kB / 480.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3862/0.3885, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01537/0.4039, allocations: 11.72 MB / 0.542 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009711/0.4137, allocations: 3.935 MB / 0.5459 GB, free: 1.141 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002501/0.4162, allocations: 64.06 kB / 0.546 GB, free: 1.129 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003319/0.4196, allocations: 1.171 MB / 0.5471 GB, free: 336 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005304/0.4249, allocations: 1.734 MB / 0.5488 GB, free: 15.01 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00154/0.4265, allocations: 495 kB / 0.5493 GB, free: 14.52 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006515/0.433, allocations: 4.063 MB / 0.5532 GB, free: 10.46 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003479/0.4365, allocations: 1.787 MB / 0.555 GB, free: 8.645 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002433/0.439, allocations: 1.16 MB / 0.5561 GB, free: 7.48 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002994/0.442, allocations: 1.655 MB / 0.5577 GB, free: 5.82 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001079/0.4431, allocations: 216 kB / 0.5579 GB, free: 5.609 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002905/0.4461, allocations: 1.08 MB / 0.559 GB, free: 4.527 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002378/0.4485, allocations: 1.582 MB / 0.5605 GB, free: 2.941 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002911/0.4514, allocations: 1.836 MB / 0.5623 GB, free: 1.094 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008031/0.4594, allocations: 6.134 MB / 0.5683 GB, free: 10.94 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.4595, allocations: 0 / 0.5683 GB, free: 10.94 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4595, allocations: 0 / 0.5683 GB, free: 10.94 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001588/0.4597, allocations: 0 / 0.5683 GB, free: 10.94 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1483 * Number of variables: 1483 Notification: Performance of Generate backend data structure: time 0.008948/0.4686, allocations: 4.233 MB / 0.5724 GB, free: 6.629 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.4687, allocations: 15.97 kB / 0.5725 GB, free: 6.613 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001221/0.4699, allocations: 0.6876 MB / 0.5731 GB, free: 5.914 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01209/0.482, allocations: 3.231 MB / 0.5763 GB, free: 2.676 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005842/0.4879, allocations: 2.475 MB / 0.5787 GB, free: 160 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002275/0.4881, allocations: 188.6 kB / 0.5789 GB, free: 15.97 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001206/0.4894, allocations: 323.6 kB / 0.5792 GB, free: 15.65 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01865/0.508, allocations: 10.3 MB / 0.5893 GB, free: 4.895 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.464e-05/0.5082, allocations: 27.77 kB / 0.5893 GB, free: 4.867 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003879/0.5086, allocations: 115.8 kB / 0.5894 GB, free: 4.754 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004225/0.5128, allocations: 2.432 MB / 0.5918 GB, free: 2.316 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01973/0.5325, allocations: 9.855 MB / 0.6014 GB, free: 8.449 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05601/0.5886, allocations: 34.44 MB / 0.635 GB, free: 5.156 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008532/0.5972, allocations: 4.315 MB / 0.6392 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00334/0.6005, allocations: 2.158 MB / 0.6413 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001363/0.6019, allocations: 1.323 MB / 0.6426 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.961e-05/0.602, allocations: 48.56 kB / 0.6427 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=236): time 5.47e-06/0.602, allocations: 0 / 0.6427 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of matching and sorting (n=252): time 0.04098/0.643, allocations: 16.79 MB / 0.6591 GB, free: 11.95 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001585/0.6446, allocations: 1.623 MB / 0.6607 GB, free: 10.16 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004354/0.649, allocations: 2.697 MB / 0.6633 GB, free: 7.449 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0005324/0.6495, allocations: 61.69 kB / 0.6634 GB, free: 7.383 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002226/0.6518, allocations: 2.718 MB / 0.666 GB, free: 4.637 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001503/0.6533, allocations: 0.961 MB / 0.667 GB, free: 3.668 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001814/0.6551, allocations: 1.1 MB / 0.668 GB, free: 2.559 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.6553, allocations: 305.2 kB / 0.6683 GB, free: 2.258 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003748/0.659, allocations: 2.388 MB / 0.6707 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006763/0.6658, allocations: 5.311 MB / 0.6758 GB, free: 9.117 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01158/0.6774, allocations: 8.387 MB / 0.684 GB, free: 15.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.644e-05/0.6775, allocations: 28 kB / 0.6841 GB, free: 15.28 MB / 0.545 GB Notification: Performance of matching and sorting (n=726) (initialization): time 0.02316/0.7007, allocations: 9.358 MB / 0.6932 GB, free: 5.902 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.584e-05/0.7008, allocations: 48 kB / 0.6932 GB, free: 5.855 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01378/0.7146, allocations: 4.561 MB / 0.6977 GB, free: 1.281 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01101/0.7256, allocations: 2.098 MB / 0.6997 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00458/0.7303, allocations: 1.24 MB / 0.701 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00892/0.7392, allocations: 5.306 MB / 0.7061 GB, free: 8.332 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005024/0.7443, allocations: 383.5 kB / 0.7065 GB, free: 7.961 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008956/0.7452, allocations: 316 kB / 0.7068 GB, free: 7.652 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 462 * Number of states: 0 () * Number of discrete variables: 26 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 652 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004162/0.7494, allocations: 2.032 MB / 0.7088 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006576/0.7501, allocations: 286.1 kB / 0.7091 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01119/0.7613, allocations: 5.318 MB / 0.7143 GB, free: 15.96 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009747/0.771, allocations: 4.601 MB / 0.7187 GB, free: 11.34 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.628e-05/0.7711, allocations: 4 kB / 0.7187 GB, free: 11.34 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.533e-05/0.7711, allocations: 7.969 kB / 0.7188 GB, free: 11.33 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3128/1.084, allocations: 14.29 MB / 0.7327 GB, free: 176.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.22e-05/1.084, allocations: 12.66 kB / 0.7327 GB, free: 176.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001709/1.086, allocations: 402.7 kB / 0.7331 GB, free: 176.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004405/1.09, allocations: 1.245 MB / 0.7343 GB, free: 176.3 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004228/1.091, allocations: 69.2 kB / 0.7344 GB, free: 176.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004484/1.095, allocations: 4.73 MB / 0.739 GB, free: 173.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008398/1.096, allocations: 1.558 MB / 0.7405 GB, free: 171.9 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01224/1.108, allocations: 8.014 MB / 0.7484 GB, free: 169 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006995/1.109, allocations: 339.7 kB / 0.7487 GB, free: 168.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004819/1.109, allocations: 61.66 kB / 0.7487 GB, free: 168.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/1.111, allocations: 193.1 kB / 0.7489 GB, free: 168.9 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00037/1.111, allocations: 163.5 kB / 0.7491 GB, free: 168.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000154/1.111, allocations: 85.97 kB / 0.7492 GB, free: 168.8 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.00192/1.113, allocations: 1.651 MB / 0.7508 GB, free: 168.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.6e-07/1.113, allocations: 0 / 0.7508 GB, free: 168.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.004067/1.117, allocations: 1.003 MB / 0.7517 GB, free: 168.2 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * 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 (192): * Single equations (assignments): 182 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01137/1.129, allocations: 8.568 MB / 0.7601 GB, free: 163.8 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.008926/1.138, allocations: 6.404 MB / 0.7664 GB, free: 157.4 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-05/1.138, allocations: 0.8125 kB / 0.7664 GB, free: 157.4 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004091/1.142, allocations: 2.849 MB / 0.7692 GB, free: 154.5 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002162/1.144, allocations: 390.1 kB / 0.7695 GB, free: 154.1 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06581/1.21, allocations: 44.47 MB / 0.813 GB, free: 105.2 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003129/1.213, allocations: 3.187 MB / 0.8161 GB, free: 102 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.003535/1.217, allocations: 2.049 MB / 0.8181 GB, free: 99.95 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002066/1.219, allocations: 1.698 MB / 0.8197 GB, free: 98.25 MB / 0.5763 GB Notification: Performance of SimCode: time 6.01e-07/1.219, allocations: 0 / 0.8197 GB, free: 98.25 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1427/1.361, allocations: 60.49 MB / 0.8788 GB, free: 38.07 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.91/22.27, allocations: 26.3 kB / 0.8788 GB, free: 38.05 MB / 0.5763 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1)