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.001164/0.001163, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001349, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.229/0.229, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 75.88 kB / 480.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3489/0.3504, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.01636/0.3668, allocations: 13.96 MB / 0.5442 GB, free: 2.465 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01212/0.379, allocations: 4.423 MB / 0.5485 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003056/0.3821, allocations: 79.62 kB / 0.5485 GB, free: 15.02 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004659/0.3867, allocations: 2.362 MB / 0.5509 GB, free: 12.93 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005773/0.3926, allocations: 1.934 MB / 0.5527 GB, free: 10.98 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001644/0.3943, allocations: 0.5809 MB / 0.5533 GB, free: 10.4 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005822/0.4001, allocations: 4.166 MB / 0.5574 GB, free: 6.227 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005245/0.4054, allocations: 3.585 MB / 0.5609 GB, free: 2.594 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002879/0.4083, allocations: 1.573 MB / 0.5624 GB, free: 1.016 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003284/0.4116, allocations: 2.157 MB / 0.5645 GB, free: 14.85 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001128/0.4127, allocations: 348 kB / 0.5649 GB, free: 14.51 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003137/0.4159, allocations: 1.194 MB / 0.566 GB, free: 13.32 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002618/0.4185, allocations: 2.003 MB / 0.568 GB, free: 11.31 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00398/0.4225, allocations: 2.384 MB / 0.5703 GB, free: 8.91 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01004/0.4326, allocations: 7.836 MB / 0.578 GB, free: 1.043 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.4326, allocations: 0 / 0.578 GB, free: 1.043 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4326, allocations: 0 / 0.578 GB, free: 1.043 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002736/0.4329, allocations: 0 / 0.578 GB, free: 1.043 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.01444/0.4474, allocations: 5.497 MB / 0.5833 GB, free: 11.47 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.4475, allocations: 11.97 kB / 0.5833 GB, free: 11.46 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002183/0.4496, allocations: 0.8522 MB / 0.5842 GB, free: 10.6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01146/0.4611, allocations: 3.211 MB / 0.5873 GB, free: 7.379 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006942/0.4681, allocations: 2.489 MB / 0.5897 GB, free: 4.844 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002819/0.4684, allocations: 266.7 kB / 0.59 GB, free: 4.582 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001616/0.4701, allocations: 347.8 kB / 0.5903 GB, free: 4.242 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02381/0.4939, allocations: 12.18 MB / 0.6022 GB, free: 7.586 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001285/0.4941, allocations: 27.75 kB / 0.6022 GB, free: 7.559 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006503/0.4947, allocations: 163.8 kB / 0.6024 GB, free: 7.398 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00404/0.4988, allocations: 2.633 MB / 0.605 GB, free: 4.762 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0209/0.5197, allocations: 11.21 MB / 0.6159 GB, free: 9.535 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06262/0.5823, allocations: 38.97 MB / 0.654 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01084/0.5932, allocations: 4.973 MB / 0.6588 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003335/0.5966, allocations: 2.365 MB / 0.6611 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01186/0.6085, allocations: 6.83 MB / 0.6678 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.992e-05/0.6086, allocations: 52.56 kB / 0.6679 GB, free: 2.832 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=226): time 5.24e-06/0.6086, allocations: 0 / 0.6679 GB, free: 2.832 MB / 0.5137 GB Notification: Performance of matching and sorting (n=235): time 0.03958/0.6482, allocations: 16.26 MB / 0.6837 GB, free: 2.426 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/0.6483, allocations: 73.41 kB / 0.6838 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005143/0.6534, allocations: 3.137 MB / 0.6869 GB, free: 15.19 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0003866/0.6539, allocations: 57.7 kB / 0.6869 GB, free: 15.13 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002289/0.6562, allocations: 3.325 MB / 0.6902 GB, free: 11.77 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001062/0.6572, allocations: 0.9185 MB / 0.6911 GB, free: 10.85 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002292/0.6596, allocations: 1.207 MB / 0.6922 GB, free: 9.629 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.6597, allocations: 309.1 kB / 0.6925 GB, free: 9.324 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003586/0.6633, allocations: 2.374 MB / 0.6949 GB, free: 6.945 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006125/0.6694, allocations: 5.685 MB / 0.7004 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/0.6797, allocations: 8.748 MB / 0.709 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001024/0.6798, allocations: 32 kB / 0.709 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01604/0.6959, allocations: 8.843 MB / 0.7176 GB, free: 12.35 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001121/0.696, allocations: 56 kB / 0.7177 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001803/0.6962, allocations: 123.9 kB / 0.7178 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003437/0.6997, allocations: 1.126 MB / 0.7189 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004426/0.7041, allocations: 1.349 MB / 0.7202 GB, free: 9.688 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009622/0.7138, allocations: 6.946 MB / 0.727 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004336/0.7181, allocations: 315.8 kB / 0.7273 GB, free: 2.152 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00108/0.7192, allocations: 344 kB / 0.7276 GB, free: 1.816 MB / 0.5762 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.267/0.9863, allocations: 2.341 MB / 0.7299 GB, free: 175 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007039/0.987, allocations: 311.2 kB / 0.7302 GB, free: 175 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007761/0.9948, allocations: 4.389 MB / 0.7345 GB, free: 174.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-05/0.9948, allocations: 45.78 kB / 0.7345 GB, free: 174.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.9949, allocations: 4.922 kB / 0.7345 GB, free: 174.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.092e-05/0.9949, allocations: 18.56 kB / 0.7346 GB, free: 174.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01629/1.011, allocations: 10.29 MB / 0.7446 GB, free: 170.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/1.011, allocations: 3.812 kB / 0.7446 GB, free: 170.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001485/1.013, allocations: 379 kB / 0.745 GB, free: 170.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00176/1.014, allocations: 0.673 MB / 0.7456 GB, free: 170.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000143/1.015, allocations: 46.8 kB / 0.7457 GB, free: 170.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002103/1.017, allocations: 2.568 MB / 0.7482 GB, free: 168.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/1.017, allocations: 8.812 kB / 0.7482 GB, free: 168.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00757/1.024, allocations: 6.754 MB / 0.7548 GB, free: 166.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007137/1.025, allocations: 352.1 kB / 0.7551 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003709/1.025, allocations: 47.42 kB / 0.7552 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001184/1.027, allocations: 132.6 kB / 0.7553 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002553/1.027, allocations: 140.4 kB / 0.7554 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001381/1.027, allocations: 62.97 kB / 0.7555 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00237/1.029, allocations: 1.893 MB / 0.7573 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.21e-07/1.029, allocations: 0 / 0.7573 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003945/1.033, allocations: 1.032 MB / 0.7583 GB, free: 163.8 MB / 0.5762 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.007688/1.041, allocations: 7.419 MB / 0.7656 GB, free: 156.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007697/1.049, allocations: 5.945 MB / 0.7714 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.467e-06/1.049, allocations: 0 / 0.7714 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003355/1.052, allocations: 2.418 MB / 0.7738 GB, free: 148 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002466/1.055, allocations: 477.5 kB / 0.7742 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0545/1.109, allocations: 45.2 MB / 0.8183 GB, free: 97.36 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003215/1.113, allocations: 3.618 MB / 0.8219 GB, free: 93.71 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00357/1.116, allocations: 2.028 MB / 0.8239 GB, free: 91.68 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002161/1.118, allocations: 2.042 MB / 0.8259 GB, free: 89.64 MB / 0.5762 GB Notification: Performance of SimCode: time 1.883e-06/1.118, allocations: 0 / 0.8259 GB, free: 89.64 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09199/1.21, allocations: 64.58 MB / 0.8889 GB, free: 25.41 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.71/19.92, allocations: 10.38 kB / 0.8889 GB, free: 25.41 MB / 0.5762 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