Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",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.001196/0.001196, allocations: 104.2 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 222.9 MB / 242.3 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1966/0.1966, allocations: 44.19 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 64.48 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1126, allocations: 60.83 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.01525/0.1279, allocations: 14.1 MB / 483.5 MB, free: 108 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009565/0.1376, allocations: 4.443 MB / 487.9 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002586/0.1402, allocations: 75.81 kB / 488 MB, free: 11.58 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004907/0.1451, allocations: 2.367 MB / 490.3 MB, free: 9.203 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004944/0.1501, allocations: 1.95 MB / 492.3 MB, free: 7.246 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001637/0.1518, allocations: 0.5848 MB / 492.9 MB, free: 6.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00585/0.1576, allocations: 4.17 MB / 497 MB, free: 2.484 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005745/0.1634, allocations: 3.606 MB / 0.4889 GB, free: 14.83 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002759/0.1662, allocations: 1.592 MB / 0.4905 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003177/0.1694, allocations: 2.18 MB / 0.4926 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001155/0.1706, allocations: 352 kB / 0.4929 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002659/0.1733, allocations: 1.209 MB / 0.4941 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002291/0.1756, allocations: 2.053 MB / 0.4961 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003458/0.1791, allocations: 2.442 MB / 0.4985 GB, free: 4.977 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2512/0.4302, allocations: 7.675 MB / 0.506 GB, free: 21.94 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.76e-05/0.4303, allocations: 0.8438 kB / 0.506 GB, free: 21.94 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.4303, allocations: 0 / 0.506 GB, free: 21.94 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005847/0.4309, allocations: 1.312 kB / 0.506 GB, free: 21.94 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: 1840 * Number of variables: 1840 Notification: Performance of Generate backend data structure: time 0.01906/0.45, allocations: 5.338 MB / 0.5112 GB, free: 19.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/0.4501, allocations: 8.844 kB / 0.5112 GB, free: 19.95 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002455/0.4525, allocations: 0.8652 MB / 0.5121 GB, free: 19.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0119/0.4645, allocations: 3.187 MB / 0.5152 GB, free: 19.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007415/0.4719, allocations: 2.593 MB / 0.5177 GB, free: 18.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002294/0.4722, allocations: 263.3 kB / 0.518 GB, free: 18.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001154/0.4733, allocations: 348.8 kB / 0.5183 GB, free: 18.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0224/0.4958, allocations: 12.34 MB / 0.5304 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001751/0.496, allocations: 28.53 kB / 0.5304 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001278/0.4973, allocations: 157.7 kB / 0.5305 GB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004241/0.5015, allocations: 2.696 MB / 0.5332 GB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02012/0.5217, allocations: 11.3 MB / 0.5442 GB, free: 4.605 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06298/0.5847, allocations: 39.53 MB / 0.5828 GB, free: 12.86 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0101/0.5948, allocations: 4.959 MB / 0.5877 GB, free: 7.676 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003204/0.5981, allocations: 2.375 MB / 0.59 GB, free: 5.297 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01035/0.6084, allocations: 6.741 MB / 0.5966 GB, free: 14.24 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.742e-05/0.6085, allocations: 52.56 kB / 0.5966 GB, free: 14.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=226): time 5.31e-06/0.6085, allocations: 0 / 0.5966 GB, free: 14.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=235): time 0.03887/0.6474, allocations: 16.16 MB / 0.6124 GB, free: 13.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.214e-05/0.6475, allocations: 69.41 kB / 0.6125 GB, free: 13.82 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005142/0.6527, allocations: 3.149 MB / 0.6155 GB, free: 10.66 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004062/0.6531, allocations: 56.44 kB / 0.6156 GB, free: 10.61 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002463/0.6556, allocations: 3.228 MB / 0.6187 GB, free: 7.395 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001222/0.6568, allocations: 0.8798 MB / 0.6196 GB, free: 6.52 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002545/0.6594, allocations: 1.205 MB / 0.6208 GB, free: 5.305 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.6595, allocations: 301.1 kB / 0.6211 GB, free: 5.008 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003588/0.6631, allocations: 2.365 MB / 0.6234 GB, free: 2.641 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006495/0.6696, allocations: 5.68 MB / 0.6289 GB, free: 11.38 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01133/0.681, allocations: 8.748 MB / 0.6375 GB, free: 1.484 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001025/0.6811, allocations: 32 kB / 0.6375 GB, free: 1.453 MB / 478.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01789/0.699, allocations: 8.812 MB / 0.6461 GB, free: 9.141 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001304/0.6992, allocations: 57 kB / 0.6461 GB, free: 9.086 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001953/0.6994, allocations: 116 kB / 0.6463 GB, free: 8.973 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003611/0.703, allocations: 1.133 MB / 0.6474 GB, free: 7.836 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005107/0.7082, allocations: 1.345 MB / 0.6487 GB, free: 6.488 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006913/0.7151, allocations: 4.802 MB / 0.6534 GB, free: 1.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00468/0.7198, allocations: 315.8 kB / 0.6537 GB, free: 1.211 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001042/0.7209, allocations: 347.4 kB / 0.654 GB, free: 0.875 MB / 494.1 MB 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.arrowLine.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.004468/0.7253, allocations: 2.377 MB / 0.6563 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006768/0.726, allocations: 296.1 kB / 0.6566 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007868/0.7339, allocations: 4.386 MB / 0.6609 GB, free: 9.789 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.986e-05/0.734, allocations: 44 kB / 0.6609 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.842e-05/0.734, allocations: 4 kB / 0.6609 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.602e-05/0.7341, allocations: 15.89 kB / 0.6609 GB, free: 9.727 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01904/0.7531, allocations: 10.38 MB / 0.6711 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.859e-05/0.7532, allocations: 8 kB / 0.6711 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001726/0.7549, allocations: 372.2 kB / 0.6714 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00212/0.757, allocations: 0.6851 MB / 0.6721 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002355/0.7573, allocations: 43.98 kB / 0.6722 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003047/0.7603, allocations: 2.57 MB / 0.6747 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.154e-05/0.7604, allocations: 11.94 kB / 0.6747 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01025/0.7706, allocations: 6.716 MB / 0.6812 GB, free: 4.613 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001278/0.7719, allocations: 333.2 kB / 0.6816 GB, free: 4.266 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008273/0.7728, allocations: 43.94 kB / 0.6816 GB, free: 4.223 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001864/0.7747, allocations: 139.8 kB / 0.6817 GB, free: 4.086 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004097/0.7751, allocations: 137.6 kB / 0.6819 GB, free: 3.949 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002113/0.7753, allocations: 67.12 kB / 0.6819 GB, free: 3.887 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004239/0.7796, allocations: 1.907 MB / 0.6838 GB, free: 1.98 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.4e-07/0.7796, allocations: 7.938 kB / 0.6838 GB, free: 1.973 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005757/0.7854, allocations: 1.043 MB / 0.6848 GB, free: 0.9297 MB / 0.5137 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.01079/0.7962, allocations: 7.375 MB / 0.692 GB, free: 9.453 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01548/0.8117, allocations: 9.234 MB / 0.701 GB, free: 244 kB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.367e-05/0.8117, allocations: 1.938 kB / 0.701 GB, free: 244 kB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.199/1.011, allocations: 2.394 MB / 0.7034 GB, free: 195.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002383/1.013, allocations: 485.6 kB / 0.7038 GB, free: 195.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05871/1.072, allocations: 48.86 MB / 0.7516 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003391/1.075, allocations: 3.679 MB / 0.7551 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003888/1.079, allocations: 2.008 MB / 0.7571 GB, free: 151.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002293/1.082, allocations: 2.077 MB / 0.7591 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of SimCode: time 6.21e-07/1.082, allocations: 4 kB / 0.7591 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09763/1.179, allocations: 67.36 MB / 0.8249 GB, free: 82.26 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.14/14.31, allocations: 17.92 kB / 0.8249 GB, free: 82.25 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches