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.001089/0.001089, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001065/0.001065, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 227.4 MB / 246.8 MB, free: 10.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1988/0.1988, allocations: 46.11 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 82.83 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09283/0.09415, allocations: 62.44 MB / 480.1 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.01425/0.1084, allocations: 13.96 MB / 494.1 MB, free: 7.191 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00872/0.1172, allocations: 4.431 MB / 498.5 MB, free: 2.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001803/0.119, allocations: 83.75 kB / 498.6 MB, free: 2.668 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004257/0.1234, allocations: 2.347 MB / 0.4892 GB, free: 320 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004224/0.1276, allocations: 1.899 MB / 0.4911 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001325/0.1289, allocations: 0.577 MB / 0.4916 GB, free: 13.83 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00436/0.1333, allocations: 4.151 MB / 0.4957 GB, free: 9.672 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003854/0.1372, allocations: 3.583 MB / 0.4992 GB, free: 6.043 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001955/0.1392, allocations: 1.565 MB / 0.5007 GB, free: 4.473 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002424/0.1416, allocations: 2.149 MB / 0.5028 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000544/0.1422, allocations: 348 kB / 0.5031 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001809/0.144, allocations: 1.201 MB / 0.5043 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1913/0.3353, allocations: 1.994 MB / 0.5063 GB, free: 16.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002851/0.3382, allocations: 2.385 MB / 0.5086 GB, free: 16.12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01135/0.3496, allocations: 7.495 MB / 0.5159 GB, free: 15.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.3496, allocations: 0 / 0.5159 GB, free: 15.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3496, allocations: 3 kB / 0.5159 GB, free: 15.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002366/0.3499, allocations: 0 / 0.5159 GB, free: 15.14 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.01314/0.363, allocations: 5.35 MB / 0.5211 GB, free: 13.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.3631, allocations: 9.406 kB / 0.5211 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001314/0.3644, allocations: 0.8479 MB / 0.522 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01024/0.3746, allocations: 3.183 MB / 0.5251 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004819/0.3795, allocations: 2.468 MB / 0.5275 GB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000183/0.3797, allocations: 263.6 kB / 0.5277 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008142/0.3805, allocations: 345.1 kB / 0.5281 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01623/0.3967, allocations: 12.18 MB / 0.54 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.352e-05/0.3969, allocations: 29.19 kB / 0.54 GB, free: 4.973 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004609/0.3973, allocations: 161.6 kB / 0.5401 GB, free: 4.902 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003222/0.4006, allocations: 2.638 MB / 0.5427 GB, free: 3.891 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01865/0.4192, allocations: 11.2 MB / 0.5537 GB, free: 9.371 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05278/0.4721, allocations: 39.12 MB / 0.5919 GB, free: 2.004 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009684/0.4818, allocations: 4.968 MB / 0.5967 GB, free: 12.81 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002897/0.4847, allocations: 2.37 MB / 0.599 GB, free: 10.43 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008683/0.4934, allocations: 6.809 MB / 0.6057 GB, free: 3.273 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.515e-05/0.4935, allocations: 56.56 kB / 0.6057 GB, free: 3.211 MB / 446.1 MB Notification: Performance of pre-optimization done (n=226): time 3.667e-06/0.4935, allocations: 0 / 0.6057 GB, free: 3.211 MB / 446.1 MB Notification: Performance of matching and sorting (n=235): time 0.03407/0.5276, allocations: 16.18 MB / 0.6215 GB, free: 2.902 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.607e-05/0.5276, allocations: 77.34 kB / 0.6216 GB, free: 2.816 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004064/0.5317, allocations: 3.121 MB / 0.6247 GB, free: 15.68 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002279/0.532, allocations: 64.06 kB / 0.6247 GB, free: 15.62 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001706/0.5337, allocations: 3.184 MB / 0.6278 GB, free: 12.43 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008605/0.5345, allocations: 0.8854 MB / 0.6287 GB, free: 11.55 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00157/0.5361, allocations: 1.197 MB / 0.6299 GB, free: 10.34 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.094e-05/0.5362, allocations: 306.1 kB / 0.6301 GB, free: 10.04 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003109/0.5393, allocations: 2.366 MB / 0.6325 GB, free: 7.672 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005033/0.5444, allocations: 5.693 MB / 0.638 GB, free: 412 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00951/0.5539, allocations: 8.741 MB / 0.6466 GB, free: 6.516 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-05/0.554, allocations: 39.75 kB / 0.6466 GB, free: 6.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01502/0.569, allocations: 8.827 MB / 0.6552 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.689e-05/0.5691, allocations: 54.66 kB / 0.6553 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001043/0.5693, allocations: 116.8 kB / 0.6554 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003391/0.5727, allocations: 1.141 MB / 0.6565 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004179/0.5768, allocations: 1.337 MB / 0.6578 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009164/0.586, allocations: 6.962 MB / 0.6646 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004009/0.59, allocations: 315.7 kB / 0.6649 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001052/0.5911, allocations: 350.5 kB / 0.6652 GB, free: 3.578 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.004831/0.596, allocations: 2.341 MB / 0.6675 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006137/0.5966, allocations: 296.2 kB / 0.6678 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007806/0.6044, allocations: 4.391 MB / 0.6721 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.856e-05/0.6045, allocations: 43.98 kB / 0.6721 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.6045, allocations: 4 kB / 0.6721 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.847e-05/0.6045, allocations: 7.969 kB / 0.6721 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0185/0.623, allocations: 10.3 MB / 0.6822 GB, free: 2.078 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.451e-05/0.6231, allocations: 11.94 kB / 0.6822 GB, free: 2.066 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001623/0.6247, allocations: 383.4 kB / 0.6826 GB, free: 1.691 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001994/0.6267, allocations: 0.6819 MB / 0.6832 GB, free: 1 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001994/0.6269, allocations: 51.03 kB / 0.6833 GB, free: 0.9531 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002728/0.6297, allocations: 2.57 MB / 0.6858 GB, free: 14.24 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.6297, allocations: 7.938 kB / 0.6858 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009367/0.639, allocations: 6.734 MB / 0.6924 GB, free: 7.41 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009613/0.64, allocations: 337.2 kB / 0.6927 GB, free: 7.059 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007278/0.6408, allocations: 50.56 kB / 0.6928 GB, free: 7.012 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001628/0.6424, allocations: 135.8 kB / 0.6929 GB, free: 6.879 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003559/0.6428, allocations: 129.6 kB / 0.693 GB, free: 6.75 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001892/0.643, allocations: 71.06 kB / 0.6931 GB, free: 6.684 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003527/0.6465, allocations: 1.899 MB / 0.6949 GB, free: 4.785 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6465, allocations: 4 kB / 0.6949 GB, free: 4.781 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004765/0.6513, allocations: 1.031 MB / 0.6959 GB, free: 3.75 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.01011/0.6614, allocations: 7.387 MB / 0.7032 GB, free: 12.26 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01495/0.6764, allocations: 9.38 MB / 0.7123 GB, free: 2.883 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/0.6764, allocations: 0 / 0.7123 GB, free: 2.883 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003902/0.6803, allocations: 2.399 MB / 0.7147 GB, free: 440 kB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1982/0.8785, allocations: 493.9 kB / 0.7151 GB, free: 184.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0628/0.9414, allocations: 48.68 MB / 0.7627 GB, free: 153.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003614/0.945, allocations: 3.631 MB / 0.7662 GB, free: 150.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00403/0.9491, allocations: 2.018 MB / 0.7682 GB, free: 148.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00222/0.9513, allocations: 2.042 MB / 0.7702 GB, free: 146.7 MB / 0.545 GB Notification: Performance of SimCode: time 7.41e-07/0.9513, allocations: 4 kB / 0.7702 GB, free: 146.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08754/1.039, allocations: 67.84 MB / 0.8364 GB, free: 79.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.44/17.48, allocations: 19.69 kB / 0.8364 GB, free: 79.18 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat","/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