Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_trunk_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.001115/0.001115, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001253/0.001253, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2232/0.2232, allocations: 46.1 MB / 344.1 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 78.03 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1452, allocations: 62.44 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.01594/0.1612, allocations: 13.95 MB / 494.1 MB, free: 7.172 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009783/0.1711, allocations: 4.427 MB / 498.5 MB, free: 2.734 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002541/0.1736, allocations: 75.75 kB / 498.6 MB, free: 2.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005074/0.1788, allocations: 2.359 MB / 0.4892 GB, free: 300 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005431/0.1843, allocations: 1.898 MB / 0.4911 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001886/0.1862, allocations: 0.5848 MB / 0.4916 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006479/0.1927, allocations: 4.142 MB / 0.4957 GB, free: 9.652 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00627/0.199, allocations: 3.579 MB / 0.4992 GB, free: 6.027 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003791/0.2029, allocations: 1.565 MB / 0.5007 GB, free: 4.457 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003942/0.2068, allocations: 2.153 MB / 0.5028 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001685/0.2086, allocations: 348 kB / 0.5031 GB, free: 1.957 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003523/0.2121, allocations: 1.198 MB / 0.5043 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2471/0.4592, allocations: 1.991 MB / 0.5062 GB, free: 16.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003137/0.4624, allocations: 2.388 MB / 0.5086 GB, free: 16.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009878/0.4723, allocations: 7.489 MB / 0.5159 GB, free: 15.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.4723, allocations: 3.844 kB / 0.5159 GB, free: 15.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4723, allocations: 0.5 kB / 0.5159 GB, free: 15.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000398/0.4727, allocations: 0 / 0.5159 GB, free: 15.2 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: 1811 * Number of variables: 1811 Notification: Performance of Generate backend data structure: time 0.01913/0.4919, allocations: 5.356 MB / 0.5211 GB, free: 13.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.588e-05/0.492, allocations: 11.34 kB / 0.5211 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003065/0.495, allocations: 0.8468 MB / 0.522 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01221/0.5073, allocations: 3.181 MB / 0.5251 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006548/0.5138, allocations: 2.467 MB / 0.5275 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002381/0.5141, allocations: 260.6 kB / 0.5277 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001516/0.5156, allocations: 350.5 kB / 0.5281 GB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01803/0.5337, allocations: 12.19 MB / 0.54 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001109/0.5338, allocations: 31.52 kB / 0.54 GB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005009/0.5343, allocations: 159.1 kB / 0.5401 GB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003417/0.5378, allocations: 2.636 MB / 0.5427 GB, free: 3.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02213/0.5599, allocations: 11.21 MB / 0.5537 GB, free: 9.359 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07052/0.6305, allocations: 39.11 MB / 0.5919 GB, free: 1.996 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01095/0.6415, allocations: 4.982 MB / 0.5967 GB, free: 12.79 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003634/0.6451, allocations: 2.367 MB / 0.599 GB, free: 10.41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01311/0.6583, allocations: 6.809 MB / 0.6057 GB, free: 3.254 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.772e-05/0.6584, allocations: 55.19 kB / 0.6057 GB, free: 3.195 MB / 446.1 MB Notification: Performance of pre-optimization done (n=226): time 6.613e-06/0.6584, allocations: 0 / 0.6057 GB, free: 3.195 MB / 446.1 MB Notification: Performance of matching and sorting (n=235): time 0.04401/0.7024, allocations: 16.18 MB / 0.6215 GB, free: 2.895 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.04e-05/0.7025, allocations: 77.34 kB / 0.6216 GB, free: 2.809 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007227/0.7098, allocations: 3.128 MB / 0.6247 GB, free: 15.66 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004699/0.7103, allocations: 49.7 kB / 0.6247 GB, free: 15.61 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00282/0.7131, allocations: 3.195 MB / 0.6278 GB, free: 12.41 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001587/0.7147, allocations: 0.8767 MB / 0.6287 GB, free: 11.54 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003267/0.718, allocations: 1.198 MB / 0.6299 GB, free: 10.33 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.7181, allocations: 305.1 kB / 0.6301 GB, free: 10.03 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004062/0.7222, allocations: 2.374 MB / 0.6325 GB, free: 7.652 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006307/0.7285, allocations: 5.681 MB / 0.638 GB, free: 404 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01127/0.7398, allocations: 8.755 MB / 0.6466 GB, free: 6.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000128/0.74, allocations: 36 kB / 0.6466 GB, free: 6.465 MB / 494.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01764/0.7576, allocations: 8.825 MB / 0.6552 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001504/0.7578, allocations: 52 kB / 0.6553 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001967/0.758, allocations: 124.1 kB / 0.6554 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003635/0.7617, allocations: 1.133 MB / 0.6565 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00485/0.7665, allocations: 1.345 MB / 0.6578 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01017/0.7767, allocations: 6.946 MB / 0.6646 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006037/0.7828, allocations: 315.7 kB / 0.6649 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001601/0.7844, allocations: 352 kB / 0.6652 GB, free: 3.562 MB / 0.4981 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.008336/0.7928, allocations: 2.345 MB / 0.6675 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001073/0.7939, allocations: 296.2 kB / 0.6678 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01347/0.8074, allocations: 4.392 MB / 0.6721 GB, free: 12.5 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001107/0.8075, allocations: 43.98 kB / 0.6721 GB, free: 12.46 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.416e-05/0.8076, allocations: 4 kB / 0.6721 GB, free: 12.46 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.416e-05/0.8076, allocations: 7.969 kB / 0.6721 GB, free: 12.45 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02836/0.836, allocations: 10.31 MB / 0.6822 GB, free: 2.047 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.985e-05/0.836, allocations: 8.625 kB / 0.6822 GB, free: 2.039 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002467/0.8385, allocations: 379.4 kB / 0.6826 GB, free: 1.668 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003084/0.8416, allocations: 0.6773 MB / 0.6832 GB, free: 0.9805 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003332/0.842, allocations: 47.44 kB / 0.6833 GB, free: 0.9375 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004151/0.8461, allocations: 2.574 MB / 0.6858 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/0.8462, allocations: 7.938 kB / 0.6858 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01565/0.8618, allocations: 6.732 MB / 0.6924 GB, free: 7.391 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001414/0.8633, allocations: 349.4 kB / 0.6927 GB, free: 7.027 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001007/0.8643, allocations: 42.97 kB / 0.6928 GB, free: 6.988 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002374/0.8667, allocations: 143.7 kB / 0.6929 GB, free: 6.848 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005507/0.8673, allocations: 133.6 kB / 0.693 GB, free: 6.715 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002751/0.8676, allocations: 64 kB / 0.6931 GB, free: 6.652 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005542/0.8731, allocations: 1.899 MB / 0.6949 GB, free: 4.754 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8732, allocations: 0 / 0.6949 GB, free: 4.754 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006119/0.8793, allocations: 1.029 MB / 0.6959 GB, free: 3.727 MB / 0.5294 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.01176/0.8911, allocations: 7.395 MB / 0.7032 GB, free: 12.23 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01718/0.9083, allocations: 9.373 MB / 0.7123 GB, free: 2.859 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/0.9083, allocations: 4.062 kB / 0.7123 GB, free: 2.855 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004644/0.913, allocations: 2.403 MB / 0.7147 GB, free: 408 kB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2401/1.153, allocations: 481.9 kB / 0.7151 GB, free: 203.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07347/1.227, allocations: 48.68 MB / 0.7627 GB, free: 167.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004423/1.231, allocations: 3.629 MB / 0.7662 GB, free: 164.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004294/1.235, allocations: 2.018 MB / 0.7682 GB, free: 162.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00353/1.239, allocations: 2.047 MB / 0.7702 GB, free: 160.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.102e-06/1.239, allocations: 0 / 0.7702 GB, free: 160.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.105/1.344, allocations: 67.84 MB / 0.8364 GB, free: 92.55 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.61/14.96, allocations: 11.75 kB / 0.8364 GB, free: 92.54 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit3/FreeMotionScalarInit3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches