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.001306/0.001306, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001414/0.001414, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2329/0.2329, allocations: 46.12 MB / 344.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002337/0.002337, allocations: 76.2 kB / 480.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3506/0.353, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.01947/0.3725, allocations: 13.96 MB / 0.5443 GB, free: 2.398 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.3847, allocations: 4.422 MB / 0.5486 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003801/0.3886, allocations: 79.03 kB / 0.5487 GB, free: 14.95 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005685/0.3944, allocations: 2.359 MB / 0.551 GB, free: 12.84 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006312/0.4007, allocations: 1.887 MB / 0.5528 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002331/0.4031, allocations: 0.5848 MB / 0.5534 GB, free: 10.36 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008124/0.4113, allocations: 4.154 MB / 0.5574 GB, free: 6.195 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006049/0.4174, allocations: 3.585 MB / 0.5609 GB, free: 2.562 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003546/0.421, allocations: 1.565 MB / 0.5625 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004184/0.4252, allocations: 2.153 MB / 0.5646 GB, free: 14.83 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001259/0.4265, allocations: 348 kB / 0.5649 GB, free: 14.49 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003565/0.4301, allocations: 1.201 MB / 0.5661 GB, free: 13.29 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003135/0.4332, allocations: 1.995 MB / 0.568 GB, free: 11.29 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004626/0.4379, allocations: 2.384 MB / 0.5703 GB, free: 8.891 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01313/0.4511, allocations: 7.844 MB / 0.578 GB, free: 1.016 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.171e-05/0.4511, allocations: 0 / 0.578 GB, free: 1.016 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.4511, allocations: 0 / 0.578 GB, free: 1.016 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004/0.4516, allocations: 0 / 0.578 GB, free: 1.016 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.01752/0.4691, allocations: 5.497 MB / 0.5834 GB, free: 11.44 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.782e-05/0.4692, allocations: 8.031 kB / 0.5834 GB, free: 11.43 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003105/0.4723, allocations: 0.8444 MB / 0.5842 GB, free: 10.58 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01223/0.4846, allocations: 3.215 MB / 0.5873 GB, free: 7.355 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006298/0.4909, allocations: 2.489 MB / 0.5898 GB, free: 4.82 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003248/0.4913, allocations: 266.7 kB / 0.59 GB, free: 4.559 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001686/0.493, allocations: 339.8 kB / 0.5904 GB, free: 4.227 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02698/0.52, allocations: 12.18 MB / 0.6023 GB, free: 7.566 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001652/0.5202, allocations: 27.75 kB / 0.6023 GB, free: 7.539 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001255/0.5215, allocations: 163.8 kB / 0.6024 GB, free: 7.379 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00482/0.5263, allocations: 2.637 MB / 0.605 GB, free: 4.738 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02329/0.5496, allocations: 11.21 MB / 0.616 GB, free: 9.508 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06522/0.6149, allocations: 38.96 MB / 0.654 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0112/0.6262, allocations: 4.981 MB / 0.6589 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003788/0.63, allocations: 2.365 MB / 0.6612 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01183/0.6418, allocations: 6.834 MB / 0.6679 GB, free: 2.859 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.812e-05/0.6419, allocations: 52.56 kB / 0.6679 GB, free: 2.801 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=226): time 6.322e-06/0.6419, allocations: 0 / 0.6679 GB, free: 2.801 MB / 0.5137 GB Notification: Performance of matching and sorting (n=235): time 0.04162/0.6836, allocations: 16.26 MB / 0.6838 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.477e-05/0.6837, allocations: 69.41 kB / 0.6838 GB, free: 2.32 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005151/0.6888, allocations: 3.141 MB / 0.6869 GB, free: 15.16 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000452/0.6893, allocations: 53.7 kB / 0.687 GB, free: 15.11 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002654/0.692, allocations: 3.328 MB / 0.6902 GB, free: 11.75 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001162/0.6932, allocations: 0.9185 MB / 0.6911 GB, free: 10.82 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001899/0.6951, allocations: 1.211 MB / 0.6923 GB, free: 9.598 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.6952, allocations: 305.1 kB / 0.6926 GB, free: 9.297 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003782/0.699, allocations: 2.37 MB / 0.6949 GB, free: 6.922 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007103/0.7061, allocations: 5.681 MB / 0.7004 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0116/0.7178, allocations: 8.756 MB / 0.709 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.417e-05/0.7179, allocations: 32 kB / 0.709 GB, free: 5.188 MB / 0.5606 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.0177/0.7356, allocations: 8.839 MB / 0.7177 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 9.724e-05/0.7357, allocations: 60.06 kB / 0.7177 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001576/0.7359, allocations: 116 kB / 0.7178 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003853/0.7398, allocations: 1.125 MB / 0.7189 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004659/0.7445, allocations: 1.349 MB / 0.7202 GB, free: 9.672 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01122/0.7557, allocations: 6.949 MB / 0.727 GB, free: 2.449 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004471/0.7602, allocations: 319.8 kB / 0.7273 GB, free: 2.137 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001182/0.7615, allocations: 348.2 kB / 0.7277 GB, free: 1.797 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.259/1.02, allocations: 2.34 MB / 0.7299 GB, free: 175 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009713/1.021, allocations: 311.2 kB / 0.7302 GB, free: 175 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009138/1.031, allocations: 4.394 MB / 0.7345 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001032/1.031, allocations: 49.08 kB / 0.7346 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.66e-05/1.031, allocations: 6.609 kB / 0.7346 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.85e-05/1.031, allocations: 14.11 kB / 0.7346 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0191/1.05, allocations: 10.29 MB / 0.7446 GB, free: 170.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.021e-05/1.05, allocations: 7.688 kB / 0.7447 GB, free: 170.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001659/1.052, allocations: 373.5 kB / 0.745 GB, free: 170.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001907/1.054, allocations: 0.6798 MB / 0.7457 GB, free: 170.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003612/1.054, allocations: 48.19 kB / 0.7457 GB, free: 170.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002362/1.056, allocations: 2.583 MB / 0.7482 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/1.056, allocations: 3.875 kB / 0.7482 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008671/1.065, allocations: 6.745 MB / 0.7548 GB, free: 166.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006599/1.066, allocations: 350.8 kB / 0.7552 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005394/1.066, allocations: 47.11 kB / 0.7552 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001448/1.068, allocations: 138.8 kB / 0.7553 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003564/1.068, allocations: 126.5 kB / 0.7555 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001606/1.068, allocations: 68.95 kB / 0.7555 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002505/1.071, allocations: 1.896 MB / 0.7574 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.51e-07/1.071, allocations: 0 / 0.7574 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004398/1.075, allocations: 1.032 MB / 0.7584 GB, free: 163.7 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.008537/1.084, allocations: 7.414 MB / 0.7656 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007617/1.092, allocations: 5.954 MB / 0.7714 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/1.092, allocations: 0 / 0.7714 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003393/1.095, allocations: 2.406 MB / 0.7738 GB, free: 147.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002419/1.097, allocations: 489.6 kB / 0.7743 GB, free: 147.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0596/1.157, allocations: 45.18 MB / 0.8184 GB, free: 97.27 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005147/1.162, allocations: 3.63 MB / 0.8219 GB, free: 93.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003999/1.166, allocations: 2.02 MB / 0.8239 GB, free: 91.58 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002963/1.169, allocations: 2.05 MB / 0.8259 GB, free: 89.53 MB / 0.5762 GB Notification: Performance of SimCode: time 1.082e-06/1.169, allocations: 0 / 0.8259 GB, free: 89.53 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1014/1.271, allocations: 64.58 MB / 0.889 GB, free: 25.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.45/20.72, allocations: 8.734 kB / 0.889 GB, free: 25.3 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 & /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