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.000914/0.000914, allocations: 97.75 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001114/0.001115, allocations: 201 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.7 MB / 246.8 MB, free: 9.562 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1867/0.1867, allocations: 46.18 MB / 345.2 MB, free: 11.17 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002347/0.0002347, allocations: 8 kB / 419.6 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09666/0.09691, allocations: 63.56 MB / 483.2 MB, free: 4.027 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.2413/0.3382, allocations: 37.03 MB / 0.508 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01655/0.3548, allocations: 8.367 MB / 0.5162 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006394/0.3612, allocations: 163.9 kB / 0.5163 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00139/0.3627, allocations: 0.5237 MB / 0.5169 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004696/0.3674, allocations: 1.792 MB / 0.5186 GB, free: 9.605 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001389/0.3688, allocations: 0.5348 MB / 0.5191 GB, free: 9.566 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008602/0.3774, allocations: 5.917 MB / 0.5249 GB, free: 8.172 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006326/0.3837, allocations: 4.731 MB / 0.5295 GB, free: 6.113 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001745/0.3855, allocations: 1.139 MB / 0.5306 GB, free: 5.598 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002005/0.3875, allocations: 1.975 MB / 0.5326 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003444/0.3879, allocations: 154.2 kB / 0.5327 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001778/0.3897, allocations: 1.078 MB / 0.5338 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001127/0.3908, allocations: 1.799 MB / 0.5355 GB, free: 3.234 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001251/0.3921, allocations: 2.142 MB / 0.5376 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005185/0.3973, allocations: 7.202 MB / 0.5447 GB, free: 12.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3973, allocations: 0 / 0.5447 GB, free: 12.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3973, allocations: 0 / 0.5447 GB, free: 12.86 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.85e-05/0.3974, allocations: 0 / 0.5447 GB, free: 12.86 MB / 398.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.008356/0.4058, allocations: 4.388 MB / 0.5489 GB, free: 8.766 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.4058, allocations: 8.875 kB / 0.5489 GB, free: 8.758 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009805/0.4068, allocations: 0.8553 MB / 0.5498 GB, free: 7.941 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01073/0.4175, allocations: 3.267 MB / 0.553 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004241/0.4218, allocations: 2.461 MB / 0.5554 GB, free: 2.18 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001853/0.422, allocations: 258.8 kB / 0.5556 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007916/0.4228, allocations: 347.9 kB / 0.556 GB, free: 1.676 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01867/0.4415, allocations: 12.2 MB / 0.5679 GB, free: 5.148 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001226/0.4416, allocations: 23.81 kB / 0.5679 GB, free: 5.125 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006427/0.4423, allocations: 158.2 kB / 0.568 GB, free: 5.016 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004109/0.4464, allocations: 2.646 MB / 0.5706 GB, free: 2.379 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02011/0.4665, allocations: 11.23 MB / 0.5816 GB, free: 7.141 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05088/0.5174, allocations: 39.11 MB / 0.6198 GB, free: 15.4 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009651/0.5271, allocations: 4.98 MB / 0.6246 GB, free: 10.18 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003052/0.5302, allocations: 2.362 MB / 0.6269 GB, free: 7.812 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009243/0.5394, allocations: 6.834 MB / 0.6336 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.903e-05/0.5395, allocations: 52.5 kB / 0.6337 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of pre-optimization done (n=226): time 5.07e-06/0.5395, allocations: 0 / 0.6337 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of matching and sorting (n=235): time 0.0378/0.5773, allocations: 16.19 MB / 0.6495 GB, free: 228 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.5774, allocations: 81.34 kB / 0.6496 GB, free: 132 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005329/0.5828, allocations: 3.121 MB / 0.6526 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000315/0.5831, allocations: 57.64 kB / 0.6527 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002322/0.5854, allocations: 3.185 MB / 0.6558 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00102/0.5865, allocations: 0.8849 MB / 0.6566 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009861/0.5875, allocations: 0.5214 MB / 0.6571 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001123/0.5876, allocations: 301.1 kB / 0.6574 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004063/0.5917, allocations: 2.374 MB / 0.6598 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006271/0.598, allocations: 5.689 MB / 0.6653 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01093/0.6089, allocations: 8.752 MB / 0.6739 GB, free: 3.965 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001235/0.6091, allocations: 36 kB / 0.6739 GB, free: 3.93 MB / 0.5137 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01649/0.6256, allocations: 8.828 MB / 0.6825 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.534e-05/0.6257, allocations: 57 kB / 0.6826 GB, free: 11.03 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001414/0.6258, allocations: 116 kB / 0.6827 GB, free: 10.92 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003504/0.6294, allocations: 1.141 MB / 0.6838 GB, free: 9.77 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004294/0.6337, allocations: 1.345 MB / 0.6851 GB, free: 8.422 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009485/0.6432, allocations: 6.514 MB / 0.6915 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004548/0.6478, allocations: 330 kB / 0.6918 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001163/0.6489, allocations: 348 kB / 0.6921 GB, free: 0.9844 MB / 0.5294 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.005176/0.6541, allocations: 2.333 MB / 0.6944 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007032/0.6548, allocations: 300.2 kB / 0.6947 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007933/0.6628, allocations: 4.397 MB / 0.699 GB, free: 9.918 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.688e-05/0.6629, allocations: 47.11 kB / 0.699 GB, free: 9.875 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.6629, allocations: 4 kB / 0.699 GB, free: 9.871 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.736e-05/0.6629, allocations: 7.969 kB / 0.699 GB, free: 9.863 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2296/0.8925, allocations: 10.32 MB / 0.7091 GB, free: 189 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-05/0.8926, allocations: 6.656 kB / 0.7091 GB, free: 189 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001977/0.8946, allocations: 381.8 kB / 0.7095 GB, free: 189 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002252/0.8969, allocations: 0.6751 MB / 0.7101 GB, free: 189 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003874/0.8973, allocations: 50.94 kB / 0.7102 GB, free: 189 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002806/0.9001, allocations: 2.423 MB / 0.7125 GB, free: 187.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/0.9001, allocations: 9.906 kB / 0.7126 GB, free: 187.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01105/0.9112, allocations: 6.736 MB / 0.7191 GB, free: 186.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007242/0.9119, allocations: 345.7 kB / 0.7195 GB, free: 186.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000612/0.9125, allocations: 46.61 kB / 0.7195 GB, free: 186.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001561/0.9141, allocations: 140 kB / 0.7196 GB, free: 186.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003488/0.9145, allocations: 132.5 kB / 0.7198 GB, free: 186.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001693/0.9146, allocations: 66.06 kB / 0.7198 GB, free: 186.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004125/0.9188, allocations: 1.895 MB / 0.7217 GB, free: 185.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9188, allocations: 4.344 kB / 0.7217 GB, free: 185.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004431/0.9232, allocations: 1.027 MB / 0.7227 GB, free: 185.7 MB / 0.545 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.009621/0.9328, allocations: 7.408 MB / 0.7299 GB, free: 182.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008674/0.9415, allocations: 5.911 MB / 0.7357 GB, free: 180.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.9416, allocations: 0 / 0.7357 GB, free: 180.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003531/0.9451, allocations: 2.398 MB / 0.738 GB, free: 179.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005164/0.9503, allocations: 453.1 kB / 0.7385 GB, free: 179.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06694/1.017, allocations: 51.26 MB / 0.7885 GB, free: 129.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005055/1.022, allocations: 3.626 MB / 0.7921 GB, free: 126.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0039/1.026, allocations: 2.016 MB / 0.794 GB, free: 124.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002025/1.028, allocations: 2.043 MB / 0.796 GB, free: 122.2 MB / 0.545 GB Notification: Performance of SimCode: time 9.11e-07/1.028, allocations: 0 / 0.796 GB, free: 122.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07661/1.105, allocations: 65.61 MB / 0.8601 GB, free: 56.92 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001374/1.105, allocations: 247.5 kB / 0.8603 GB, free: 56.66 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.566/4.671, allocations: 4 kB / 0.8603 GB, free: 56.66 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