Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009014/0.0009072, allocations: 96.7 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008923/0.0008923, allocations: 173.6 kB / 16.58 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.515/1.515, allocations: 205.4 MB / 222.8 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3921/0.3921, allocations: 43.55 MB / 314.6 MB, free: 8.988 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005003/0.0005004, allocations: 12 kB / 384 MB, free: 8.148 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1237, allocations: 58.86 MB / 442.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5): time 0.2875/0.4113, allocations: 41.8 MB / 484.7 MB, free: 25.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02377/0.4351, allocations: 9.35 MB / 494 MB, free: 19.19 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009717/0.4449, allocations: 195.8 kB / 494.2 MB, free: 19.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005423/0.4503, allocations: 1.753 MB / 496 MB, free: 18.53 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01316/0.4635, allocations: 5.102 MB / 0.4893 GB, free: 16.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002087/0.4656, allocations: 458.5 kB / 0.4898 GB, free: 16.26 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007452/0.4731, allocations: 4.523 MB / 0.4942 GB, free: 14.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006957/0.48, allocations: 4.187 MB / 0.4983 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00228/0.4823, allocations: 1.188 MB / 0.4994 GB, free: 12.69 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003/0.4854, allocations: 1.912 MB / 0.5013 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004756/0.4858, allocations: 157.6 kB / 0.5015 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002029/0.4879, allocations: 0.8766 MB / 0.5023 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002054/0.4899, allocations: 1.745 MB / 0.504 GB, free: 11.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009125/0.4909, allocations: 0.8979 MB / 0.5049 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005699/0.4966, allocations: 6.032 MB / 0.5108 GB, free: 7.148 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.4966, allocations: 0 / 0.5108 GB, free: 7.148 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4966, allocations: 0 / 0.5108 GB, free: 7.148 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001993/0.4968, allocations: 4 kB / 0.5108 GB, free: 7.145 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: 1787 * Number of variables: 1787 Notification: Performance of Generate backend data structure: time 0.009147/0.506, allocations: 4.345 MB / 0.515 GB, free: 4.137 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.506, allocations: 12.84 kB / 0.515 GB, free: 4.133 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001165/0.5072, allocations: 0.8367 MB / 0.5159 GB, free: 3.562 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009388/0.5166, allocations: 3.272 MB / 0.519 GB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006328/0.5229, allocations: 2.685 MB / 0.5217 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001824/0.5231, allocations: 254.3 kB / 0.5219 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006714/0.5238, allocations: 331.7 kB / 0.5222 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01798/0.5418, allocations: 11.88 MB / 0.5338 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000101/0.5419, allocations: 27.72 kB / 0.5339 GB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000418/0.5424, allocations: 151.8 kB / 0.534 GB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003693/0.5461, allocations: 2.649 MB / 0.5366 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01965/0.5657, allocations: 10.94 MB / 0.5473 GB, free: 4.801 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06114/0.6269, allocations: 37.55 MB / 0.5839 GB, free: 14.42 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008275/0.6352, allocations: 4.409 MB / 0.5882 GB, free: 9.785 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003353/0.6386, allocations: 2.15 MB / 0.5903 GB, free: 7.633 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001362/0.64, allocations: 1.319 MB / 0.5916 GB, free: 6.094 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.141e-05/0.6401, allocations: 56.56 kB / 0.5917 GB, free: 6.027 MB / 462.1 MB Notification: Performance of pre-optimization done (n=244): time 6.442e-06/0.6401, allocations: 0 / 0.5917 GB, free: 6.027 MB / 462.1 MB Notification: Performance of matching and sorting (n=265): time 0.03932/0.6794, allocations: 13.91 MB / 0.6053 GB, free: 8.039 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.356e-05/0.6795, allocations: 81.39 kB / 0.6054 GB, free: 7.949 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005185/0.6847, allocations: 2.982 MB / 0.6083 GB, free: 4.949 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003761/0.6851, allocations: 53.7 kB / 0.6083 GB, free: 4.891 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002236/0.6873, allocations: 3.124 MB / 0.6114 GB, free: 1.723 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001713/0.6891, allocations: 0.9752 MB / 0.6123 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007506/0.6898, allocations: 116 kB / 0.6124 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0007231/0.6906, allocations: 0.5662 MB / 0.613 GB, free: 48 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004405/0.695, allocations: 2.374 MB / 0.6153 GB, free: 13.67 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006709/0.7017, allocations: 5.662 MB / 0.6208 GB, free: 6.383 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006038/0.7078, allocations: 3.665 MB / 0.6244 GB, free: 2.711 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.804e-05/0.7079, allocations: 35.94 kB / 0.6244 GB, free: 2.676 MB / 494.1 MB Notification: Performance of matching and sorting (n=797) (initialization): time 0.2707/0.9786, allocations: 8.745 MB / 0.633 GB, free: 136.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.473e-05/0.9787, allocations: 54.38 kB / 0.633 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001236/0.9788, allocations: 120.2 kB / 0.6332 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002819/0.9817, allocations: 1.06 MB / 0.6342 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004007/0.9857, allocations: 1.375 MB / 0.6355 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00222/0.9879, allocations: 2.467 MB / 0.6379 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003627/0.9916, allocations: 323.7 kB / 0.6383 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007526/0.9923, allocations: 350.2 kB / 0.6386 GB, free: 134.7 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 523 * Number of states: 0 () * Number of discrete variables: 27 (freeMotionScalarInit2.arrowColor[3],freeMotionScalarInit2.arrowColor[2],freeMotionScalarInit2.arrowColor[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],freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.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 (744): * Single equations (assignments): 735 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004092/0.9964, allocations: 2.368 MB / 0.6409 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004429/0.9969, allocations: 305.6 kB / 0.6412 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008254/1.005, allocations: 5.087 MB / 0.6462 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.645e-05/1.005, allocations: 53.02 kB / 0.6462 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/1.005, allocations: 0 / 0.6462 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.929e-05/1.005, allocations: 10.22 kB / 0.6462 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02005/1.025, allocations: 11.76 MB / 0.6577 GB, free: 129.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.927e-05/1.025, allocations: 8.812 kB / 0.6577 GB, free: 129.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001729/1.027, allocations: 426.8 kB / 0.6581 GB, free: 129.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003032/1.03, allocations: 0.9097 MB / 0.659 GB, free: 129.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003169/1.03, allocations: 56.17 kB / 0.6591 GB, free: 129.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002175/1.033, allocations: 2.281 MB / 0.6613 GB, free: 127.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-05/1.033, allocations: 12.72 kB / 0.6613 GB, free: 127.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01064/1.043, allocations: 7.537 MB / 0.6687 GB, free: 124.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008808/1.044, allocations: 341.8 kB / 0.669 GB, free: 124.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003764/1.045, allocations: 49.98 kB / 0.669 GB, free: 124.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/1.046, allocations: 140.4 kB / 0.6692 GB, free: 124.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003264/1.046, allocations: 159.7 kB / 0.6693 GB, free: 124.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001712/1.046, allocations: 83.83 kB / 0.6694 GB, free: 124.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002801/1.049, allocations: 1.807 MB / 0.6712 GB, free: 123.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.049, allocations: 4 kB / 0.6712 GB, free: 123.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00539/1.055, allocations: 1.041 MB / 0.6722 GB, free: 123.7 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit1.r_rel_a_1,freeMotionScalarInit1.r_rel_a_2,freeMotionScalarInit1.r_rel_a_3,freeMotionScalarInit1.v_rel_a_1,freeMotionScalarInit1.v_rel_a_2,freeMotionScalarInit1.v_rel_a_3,freeMotionScalarInit2.angle_1,freeMotionScalarInit2.angle_2,freeMotionScalarInit2.angle_3,freeMotionScalarInit2.angle_d_1,freeMotionScalarInit2.angle_d_2,freeMotionScalarInit2.angle_d_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 (216): * Single equations (assignments): 207 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01131/1.066, allocations: 8.195 MB / 0.6802 GB, free: 119.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009139/1.075, allocations: 6.226 MB / 0.6863 GB, free: 114.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/1.075, allocations: 4 kB / 0.6863 GB, free: 114.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00355/1.079, allocations: 2.599 MB / 0.6888 GB, free: 111.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002707/1.081, allocations: 498.4 kB / 0.6893 GB, free: 111.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0527/1.134, allocations: 34.32 MB / 0.7228 GB, free: 76.34 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005037/1.139, allocations: 3.658 MB / 0.7264 GB, free: 72.66 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004443/1.144, allocations: 2.15 MB / 0.7285 GB, free: 70.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002918/1.147, allocations: 2.065 MB / 0.7305 GB, free: 68.44 MB / 494.1 MB Notification: Performance of SimCode: time 1.212e-06/1.147, allocations: 0 / 0.7305 GB, free: 68.44 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1082/1.255, allocations: 74.42 MB / 0.8032 GB, free: 10 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00018/1.255, allocations: 217.8 kB / 0.8034 GB, free: 9.758 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.502/4.758, allocations: 4 kB / 0.8034 GB, free: 9.754 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat does not exist to compare? outputFormat=mat