Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001312/0.001312, allocations: 117.2 kB / 17.78 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001404/0.001405, allocations: 204.6 kB / 18.74 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 247 MB, free: 10.43 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.2322/0.2322, allocations: 46.13 MB / 344.4 MB, free: 11.46 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.002345/0.002345, allocations: 79.86 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3658, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.0171/0.3829, allocations: 13.96 MB / 0.5442 GB, free: 2.418 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01101/0.394, allocations: 4.422 MB / 0.5486 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003096/0.3971, allocations: 79.78 kB / 0.5486 GB, free: 14.97 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005173/0.4024, allocations: 2.356 MB / 0.5509 GB, free: 12.86 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006003/0.4084, allocations: 1.895 MB / 0.5528 GB, free: 10.96 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001894/0.4103, allocations: 0.5887 MB / 0.5534 GB, free: 10.38 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006445/0.4168, allocations: 4.156 MB / 0.5574 GB, free: 6.207 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005185/0.422, allocations: 3.581 MB / 0.5609 GB, free: 2.578 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002822/0.4249, allocations: 1.569 MB / 0.5625 GB, free: 1.004 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003199/0.4281, allocations: 2.149 MB / 0.5646 GB, free: 14.85 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009023/0.429, allocations: 348 kB / 0.5649 GB, free: 14.51 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004004/0.433, allocations: 1.202 MB / 0.5661 GB, free: 13.3 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002734/0.4358, allocations: 1.999 MB / 0.568 GB, free: 11.3 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004361/0.4402, allocations: 2.38 MB / 0.5703 GB, free: 8.906 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01222/0.4524, allocations: 7.848 MB / 0.578 GB, free: 1.027 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.164e-05/0.4525, allocations: 0 / 0.578 GB, free: 1.027 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.4525, allocations: 0 / 0.578 GB, free: 1.027 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002991/0.4528, allocations: 0 / 0.578 GB, free: 1.027 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: 1811 * Number of variables: 1811 Notification: Performance of Generate backend data structure: time 0.01547/0.4683, allocations: 5.486 MB / 0.5834 GB, free: 11.46 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.867e-05/0.4684, allocations: 15.97 kB / 0.5834 GB, free: 11.45 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001967/0.4703, allocations: 0.8483 MB / 0.5842 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01175/0.4821, allocations: 3.215 MB / 0.5873 GB, free: 7.367 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006134/0.4883, allocations: 2.489 MB / 0.5898 GB, free: 4.832 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002612/0.4886, allocations: 266.7 kB / 0.59 GB, free: 4.57 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001115/0.4897, allocations: 347.8 kB / 0.5904 GB, free: 4.23 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02293/0.5126, allocations: 12.18 MB / 0.6022 GB, free: 7.578 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001134/0.5128, allocations: 27.81 kB / 0.6023 GB, free: 7.551 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005266/0.5133, allocations: 159.8 kB / 0.6024 GB, free: 7.395 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004753/0.5181, allocations: 2.641 MB / 0.605 GB, free: 4.75 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02373/0.5419, allocations: 11.2 MB / 0.6159 GB, free: 9.531 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06514/0.607, allocations: 38.97 MB / 0.654 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01092/0.618, allocations: 4.97 MB / 0.6589 GB, free: 12.47 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003701/0.6218, allocations: 2.369 MB / 0.6612 GB, free: 10.09 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01135/0.6331, allocations: 6.825 MB / 0.6678 GB, free: 2.887 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.601e-05/0.6332, allocations: 52.56 kB / 0.6679 GB, free: 2.828 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=226): time 6.081e-06/0.6333, allocations: 7.938 kB / 0.6679 GB, free: 2.82 MB / 0.5138 GB Notification: Performance of matching and sorting (n=235): time 0.04023/0.6735, allocations: 16.25 MB / 0.6838 GB, free: 2.422 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.861e-05/0.6736, allocations: 73.41 kB / 0.6838 GB, free: 2.34 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004791/0.6784, allocations: 3.141 MB / 0.6869 GB, free: 15.18 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0003078/0.6787, allocations: 53.7 kB / 0.6869 GB, free: 15.12 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002612/0.6814, allocations: 3.321 MB / 0.6902 GB, free: 11.77 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001187/0.6826, allocations: 0.9224 MB / 0.6911 GB, free: 10.84 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001824/0.6844, allocations: 1.211 MB / 0.6923 GB, free: 9.621 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001563/0.6846, allocations: 305.1 kB / 0.6926 GB, free: 9.32 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003805/0.6884, allocations: 2.37 MB / 0.6949 GB, free: 6.945 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006891/0.6953, allocations: 5.685 MB / 0.7004 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01198/0.7073, allocations: 8.744 MB / 0.709 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001083/0.7075, allocations: 36 kB / 0.709 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01845/0.7259, allocations: 8.843 MB / 0.7176 GB, free: 12.35 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 8.507e-05/0.726, allocations: 52 kB / 0.7177 GB, free: 12.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001514/0.7262, allocations: 119.9 kB / 0.7178 GB, free: 12.18 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003617/0.7298, allocations: 1.138 MB / 0.7189 GB, free: 11.04 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004489/0.7343, allocations: 1.341 MB / 0.7202 GB, free: 9.691 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01039/0.7448, allocations: 6.957 MB / 0.727 GB, free: 2.453 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003974/0.7488, allocations: 319.8 kB / 0.7273 GB, free: 2.141 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008941/0.7497, allocations: 348 kB / 0.7277 GB, free: 1.801 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 527 * Number of states: 0 () * Number of discrete variables: 32 (freeMotionScalarInit.arrow.arrow.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],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],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.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 (730): * Single equations (assignments): 722 * Array equations: 6 * 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): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,5)} Notification: Performance of prepare postOptimizeDAE: time 0.2608/1.011, allocations: 2.334 MB / 0.7299 GB, free: 175 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006727/1.011, allocations: 309.9 kB / 0.7302 GB, free: 175 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007667/1.019, allocations: 4.398 MB / 0.7345 GB, free: 174.2 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.729e-05/1.019, allocations: 47.12 kB / 0.7346 GB, free: 174.2 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.888e-06/1.019, allocations: 5.781 kB / 0.7346 GB, free: 174.2 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.099e-05/1.019, allocations: 6.984 kB / 0.7346 GB, free: 174.2 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01688/1.036, allocations: 10.29 MB / 0.7446 GB, free: 170.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.467e-05/1.036, allocations: 7.469 kB / 0.7446 GB, free: 170.7 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001465/1.037, allocations: 375.8 kB / 0.745 GB, free: 170.7 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001776/1.039, allocations: 0.6801 MB / 0.7457 GB, free: 170.6 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002129/1.039, allocations: 50.23 kB / 0.7457 GB, free: 170.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002159/1.042, allocations: 2.573 MB / 0.7482 GB, free: 168.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/1.042, allocations: 5.531 kB / 0.7482 GB, free: 168.9 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007786/1.049, allocations: 6.747 MB / 0.7548 GB, free: 166.5 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006627/1.05, allocations: 354.2 kB / 0.7552 GB, free: 166.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003847/1.051, allocations: 46.06 kB / 0.7552 GB, free: 166.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/1.052, allocations: 135.8 kB / 0.7553 GB, free: 166.4 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002819/1.052, allocations: 135 kB / 0.7555 GB, free: 166.3 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001365/1.052, allocations: 62.58 kB / 0.7555 GB, free: 166.3 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.002311/1.055, allocations: 1.896 MB / 0.7574 GB, free: 164.8 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.6e-07/1.055, allocations: 0 / 0.7574 GB, free: 164.8 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.003956/1.058, allocations: 1.036 MB / 0.7584 GB, free: 163.8 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,body.w_a[1],body.w_a[2],body.w_a[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 (187): * Single equations (assignments): 178 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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 {(2,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 0 systems * 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.007845/1.066, allocations: 7.416 MB / 0.7656 GB, free: 156.3 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.007685/1.074, allocations: 5.944 MB / 0.7714 GB, free: 150.4 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.178e-05/1.074, allocations: 4 kB / 0.7714 GB, free: 150.4 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.003306/1.077, allocations: 2.411 MB / 0.7738 GB, free: 148 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002421/1.08, allocations: 487.2 kB / 0.7742 GB, free: 147.5 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05534/1.135, allocations: 45.18 MB / 0.8184 GB, free: 97.31 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003719/1.139, allocations: 3.626 MB / 0.8219 GB, free: 93.65 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.003601/1.143, allocations: 2.02 MB / 0.8239 GB, free: 91.62 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002334/1.145, allocations: 2.042 MB / 0.8259 GB, free: 89.58 MB / 0.5763 GB Notification: Performance of SimCode: time 9.42e-07/1.145, allocations: 0 / 0.8259 GB, free: 89.58 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09913/1.244, allocations: 64.59 MB / 0.889 GB, free: 25.36 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.67/20.91, allocations: 9.844 kB / 0.889 GB, free: 25.36 MB / 0.5763 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1)