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.001603/0.001603, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001841/0.001841, allocations: 201.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.496/1.496, allocations: 227.4 MB / 246.9 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.229/0.229, allocations: 46.12 MB / 344.3 MB, free: 11.44 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002216/0.002216, allocations: 79.88 kB / 480.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.3589, allocations: 62.44 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.01882/0.3778, allocations: 13.95 MB / 0.5442 GB, free: 2.414 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01329/0.3911, allocations: 4.432 MB / 0.5486 GB, free: 14.97 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004349/0.3955, allocations: 75.12 kB / 0.5486 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005518/0.4011, allocations: 2.356 MB / 0.5509 GB, free: 12.84 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006072/0.4072, allocations: 1.887 MB / 0.5528 GB, free: 10.94 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00174/0.409, allocations: 0.5848 MB / 0.5533 GB, free: 10.36 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006552/0.4156, allocations: 4.162 MB / 0.5574 GB, free: 6.184 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004873/0.4204, allocations: 3.582 MB / 0.5609 GB, free: 2.555 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002717/0.4232, allocations: 1.569 MB / 0.5624 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003295/0.4265, allocations: 2.145 MB / 0.5645 GB, free: 14.83 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008653/0.4274, allocations: 348 kB / 0.5649 GB, free: 14.49 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002599/0.43, allocations: 1.209 MB / 0.566 GB, free: 13.28 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002205/0.4322, allocations: 1.995 MB / 0.568 GB, free: 11.28 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003554/0.4358, allocations: 2.38 MB / 0.5703 GB, free: 8.883 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01021/0.446, allocations: 7.851 MB / 0.578 GB, free: 1 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.4461, allocations: 0 / 0.578 GB, free: 1 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.4461, allocations: 0 / 0.578 GB, free: 1 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000229/0.4463, allocations: 0 / 0.578 GB, free: 1 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.01334/0.4596, allocations: 5.486 MB / 0.5833 GB, free: 11.43 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.4597, allocations: 12.03 kB / 0.5833 GB, free: 11.42 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001555/0.4613, allocations: 0.8522 MB / 0.5842 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01145/0.4727, allocations: 3.211 MB / 0.5873 GB, free: 7.344 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006689/0.4795, allocations: 2.485 MB / 0.5897 GB, free: 4.812 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000263/0.4798, allocations: 262.7 kB / 0.59 GB, free: 4.555 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001373/0.4812, allocations: 355.8 kB / 0.5903 GB, free: 4.207 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02278/0.504, allocations: 12.18 MB / 0.6022 GB, free: 7.555 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000107/0.5041, allocations: 23.81 kB / 0.6023 GB, free: 7.531 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004785/0.5046, allocations: 163.8 kB / 0.6024 GB, free: 7.371 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004251/0.5089, allocations: 2.637 MB / 0.605 GB, free: 4.73 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02257/0.5315, allocations: 11.2 MB / 0.6159 GB, free: 9.512 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06187/0.5934, allocations: 38.97 MB / 0.654 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01083/0.6043, allocations: 4.969 MB / 0.6588 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003674/0.608, allocations: 2.373 MB / 0.6612 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01118/0.6192, allocations: 6.826 MB / 0.6678 GB, free: 2.859 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.415e-05/0.6193, allocations: 52.5 kB / 0.6679 GB, free: 2.801 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=226): time 5.671e-06/0.6193, allocations: 8 kB / 0.6679 GB, free: 2.793 MB / 0.5137 GB Notification: Performance of matching and sorting (n=235): time 0.03901/0.6583, allocations: 16.26 MB / 0.6838 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.563e-05/0.6584, allocations: 73.41 kB / 0.6838 GB, free: 2.309 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005815/0.6642, allocations: 3.137 MB / 0.6869 GB, free: 15.16 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0002943/0.6646, allocations: 53.7 kB / 0.6869 GB, free: 15.1 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00306/0.6676, allocations: 3.325 MB / 0.6902 GB, free: 11.74 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001383/0.669, allocations: 0.9185 MB / 0.6911 GB, free: 10.82 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002738/0.6718, allocations: 1.211 MB / 0.6923 GB, free: 9.594 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.6719, allocations: 309.1 kB / 0.6926 GB, free: 9.289 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004256/0.6762, allocations: 2.366 MB / 0.6949 GB, free: 6.918 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00745/0.6837, allocations: 5.692 MB / 0.7004 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0129/0.6966, allocations: 8.744 MB / 0.709 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001195/0.6968, allocations: 36 kB / 0.709 GB, free: 5.18 MB / 0.5606 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01903/0.7158, allocations: 8.839 MB / 0.7176 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001907/0.716, allocations: 52 kB / 0.7177 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002485/0.7163, allocations: 116 kB / 0.7178 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003814/0.7201, allocations: 1.134 MB / 0.7189 GB, free: 11.01 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00496/0.7251, allocations: 1.345 MB / 0.7202 GB, free: 9.664 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01046/0.7356, allocations: 6.955 MB / 0.727 GB, free: 2.434 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004287/0.7399, allocations: 315.8 kB / 0.7273 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001144/0.7411, allocations: 356 kB / 0.7276 GB, free: 1.777 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.2717/1.013, allocations: 2.337 MB / 0.7299 GB, free: 175 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000788/1.014, allocations: 310.4 kB / 0.7302 GB, free: 175 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007935/1.022, allocations: 4.396 MB / 0.7345 GB, free: 174.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-05/1.022, allocations: 47.11 kB / 0.7346 GB, free: 174.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/1.022, allocations: 4.812 kB / 0.7346 GB, free: 174.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-05/1.022, allocations: 16.3 kB / 0.7346 GB, free: 174.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01513/1.037, allocations: 10.28 MB / 0.7446 GB, free: 170.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-05/1.037, allocations: 7.719 kB / 0.7446 GB, free: 170.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001428/1.038, allocations: 376.4 kB / 0.745 GB, free: 170.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001779/1.04, allocations: 0.6692 MB / 0.7456 GB, free: 170.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001619/1.04, allocations: 59.22 kB / 0.7457 GB, free: 170.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002102/1.042, allocations: 2.566 MB / 0.7482 GB, free: 168.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/1.042, allocations: 5.562 kB / 0.7482 GB, free: 168.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007525/1.05, allocations: 6.756 MB / 0.7548 GB, free: 166.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005914/1.05, allocations: 348.8 kB / 0.7551 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003514/1.051, allocations: 48.27 kB / 0.7552 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/1.052, allocations: 140.2 kB / 0.7553 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002982/1.052, allocations: 127.7 kB / 0.7554 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001375/1.052, allocations: 66.59 kB / 0.7555 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002383/1.055, allocations: 1.896 MB / 0.7574 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.7e-07/1.055, allocations: 0 / 0.7574 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003844/1.059, 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.007378/1.066, allocations: 7.416 MB / 0.7656 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007098/1.073, allocations: 5.937 MB / 0.7714 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/1.073, allocations: 6.156 kB / 0.7714 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003104/1.076, allocations: 2.415 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.002239/1.079, allocations: 490.9 kB / 0.7742 GB, free: 147.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05097/1.13, allocations: 45.18 MB / 0.8184 GB, free: 97.26 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003174/1.133, allocations: 3.631 MB / 0.8219 GB, free: 93.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00354/1.136, allocations: 2.024 MB / 0.8239 GB, free: 91.57 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002004/1.138, allocations: 2.038 MB / 0.8259 GB, free: 89.53 MB / 0.5762 GB Notification: Performance of SimCode: time 1.132e-06/1.138, allocations: 0 / 0.8259 GB, free: 89.53 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1006/1.239, allocations: 64.57 MB / 0.8889 GB, free: 25.31 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.69/20.93, allocations: 3.609 kB / 0.8889 GB, free: 25.31 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