Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.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.Planar,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001294/0.001294, allocations: 104.9 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00146/0.00146, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2392/0.2392, allocations: 46.11 MB / 343.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 79.91 kB / 416.9 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1392, allocations: 62.44 MB / 479.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.32/0.4592, allocations: 46.08 MB / 0.5132 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02169/0.481, allocations: 9.54 MB / 0.5225 GB, free: 8.414 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01044/0.4914, allocations: 191.4 kB / 0.5227 GB, free: 8.387 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004883/0.4963, allocations: 2.19 MB / 0.5248 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00521/0.5016, allocations: 1.861 MB / 0.5266 GB, free: 7.125 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001396/0.503, allocations: 0.5618 MB / 0.5272 GB, free: 6.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006616/0.5096, allocations: 6.021 MB / 0.533 GB, free: 5.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003298/0.513, allocations: 3.055 MB / 0.536 GB, free: 3.453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002/0.515, allocations: 1.387 MB / 0.5374 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002304/0.5173, allocations: 2.316 MB / 0.5396 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005055/0.5178, allocations: 239.9 kB / 0.5399 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001886/0.5197, allocations: 0.995 MB / 0.5408 GB, free: 1.191 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001323/0.521, allocations: 1.892 MB / 0.5427 GB, free: 164 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002159/0.5232, allocations: 2.296 MB / 0.5449 GB, free: 14.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006957/0.5302, allocations: 7.331 MB / 0.5521 GB, free: 7.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.5302, allocations: 0 / 0.5521 GB, free: 7.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.073e-06/0.5302, allocations: 4 kB / 0.5521 GB, free: 7.516 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001422/0.5304, allocations: 0 / 0.5521 GB, free: 7.516 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: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.008362/0.5387, allocations: 5.072 MB / 0.557 GB, free: 2.504 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.125e-05/0.5388, allocations: 16.86 kB / 0.5571 GB, free: 2.488 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009449/0.5397, allocations: 0.8462 MB / 0.5579 GB, free: 1.68 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01011/0.5499, allocations: 3.198 MB / 0.561 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004932/0.5548, allocations: 2.568 MB / 0.5635 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001775/0.555, allocations: 251.1 kB / 0.5638 GB, free: 11.68 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007825/0.5558, allocations: 337.7 kB / 0.5641 GB, free: 11.4 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02023/0.576, allocations: 12.23 MB / 0.576 GB, free: 14.79 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.175e-05/0.5762, allocations: 31.66 kB / 0.576 GB, free: 14.75 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004067/0.5766, allocations: 159.9 kB / 0.5762 GB, free: 14.65 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004385/0.581, allocations: 2.847 MB / 0.579 GB, free: 11.81 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0202/0.6012, allocations: 11.13 MB / 0.5898 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07504/0.6763, allocations: 40.71 MB / 0.6296 GB, free: 7.152 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01041/0.6867, allocations: 4.687 MB / 0.6342 GB, free: 2.246 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003864/0.6906, allocations: 2.435 MB / 0.6366 GB, free: 15.81 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001456/0.6921, allocations: 1.32 MB / 0.6379 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.565e-05/0.6922, allocations: 56.5 kB / 0.6379 GB, free: 14.22 MB / 494.1 MB Notification: Performance of pre-optimization done (n=249): time 5.891e-06/0.6922, allocations: 0 / 0.6379 GB, free: 14.22 MB / 494.1 MB Notification: Performance of matching and sorting (n=267): time 0.04584/0.738, allocations: 18.68 MB / 0.6562 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/0.7381, allocations: 73.41 kB / 0.6562 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00529/0.7434, allocations: 3.176 MB / 0.6593 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002506/0.7437, allocations: 59.27 kB / 0.6594 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00218/0.7459, allocations: 3.119 MB / 0.6624 GB, free: 4.941 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001046/0.7469, allocations: 0.9675 MB / 0.6634 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00269/0.7496, allocations: 1.183 MB / 0.6645 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.7498, allocations: 309.1 kB / 0.6648 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004281/0.7541, allocations: 2.456 MB / 0.6672 GB, free: 24 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006542/0.7606, allocations: 5.722 MB / 0.6728 GB, free: 8.699 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01195/0.7726, allocations: 8.969 MB / 0.6816 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001186/0.7728, allocations: 36 kB / 0.6816 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01781/0.7906, allocations: 8.982 MB / 0.6904 GB, free: 5.105 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001446/0.7908, allocations: 52 kB / 0.6904 GB, free: 5.055 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002061/0.791, allocations: 116 kB / 0.6905 GB, free: 4.941 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003182/0.7942, allocations: 1.051 MB / 0.6916 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004711/0.7989, allocations: 1.337 MB / 0.6929 GB, free: 2.547 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007272/0.8062, allocations: 5.142 MB / 0.6979 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004707/0.811, allocations: 322.5 kB / 0.6982 GB, free: 12.96 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001325/0.8123, allocations: 340 kB / 0.6985 GB, free: 12.63 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[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],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[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 (725): * Single equations (assignments): 718 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,11,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005845/0.8182, allocations: 2.412 MB / 0.7009 GB, free: 10.21 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001013/0.8192, allocations: 319.9 kB / 0.7012 GB, free: 9.891 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01143/0.8306, allocations: 5.368 MB / 0.7064 GB, free: 4.461 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-05/0.8308, allocations: 47.98 kB / 0.7065 GB, free: 4.414 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.055e-05/0.8308, allocations: 4 kB / 0.7065 GB, free: 4.41 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.04e-05/0.8308, allocations: 7.969 kB / 0.7065 GB, free: 4.402 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3392/1.17, allocations: 13.06 MB / 0.7192 GB, free: 152.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.481e-05/1.17, allocations: 13.69 kB / 0.7192 GB, free: 152.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001711/1.172, allocations: 427.5 kB / 0.7196 GB, free: 152.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002779/1.175, allocations: 0.8901 MB / 0.7205 GB, free: 152.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002776/1.175, allocations: 55.52 kB / 0.7206 GB, free: 152.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005734/1.181, allocations: 4.502 MB / 0.725 GB, free: 151.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.957e-06/1.181, allocations: 19.16 kB / 0.725 GB, free: 151.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01171/1.192, allocations: 8.017 MB / 0.7328 GB, free: 148.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008705/1.193, allocations: 363.5 kB / 0.7332 GB, free: 148.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000407/1.194, allocations: 56.06 kB / 0.7332 GB, free: 148.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001214/1.195, allocations: 148.6 kB / 0.7334 GB, free: 148.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004061/1.195, allocations: 169.8 kB / 0.7335 GB, free: 148.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001759/1.195, allocations: 78.81 kB / 0.7336 GB, free: 148.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002749/1.198, allocations: 1.96 MB / 0.7355 GB, free: 147.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/1.198, allocations: 0 / 0.7355 GB, free: 147.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004559/1.203, allocations: 1.057 MB / 0.7365 GB, free: 147.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * 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 (208): * Single equations (assignments): 201 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009889/1.213, allocations: 8.685 MB / 0.745 GB, free: 144.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007657/1.22, allocations: 5.991 MB / 0.7509 GB, free: 142.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/1.22, allocations: 0 / 0.7509 GB, free: 142.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002583/1.223, allocations: 2.256 MB / 0.7531 GB, free: 141 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002547/1.226, allocations: 436.7 kB / 0.7535 GB, free: 140.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06773/1.293, allocations: 53.55 MB / 0.8058 GB, free: 81.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003388/1.297, allocations: 3.7 MB / 0.8094 GB, free: 77.77 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004251/1.301, allocations: 2.157 MB / 0.8115 GB, free: 75.61 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002214/1.303, allocations: 2.1 MB / 0.8136 GB, free: 73.5 MB / 0.545 GB Notification: Performance of SimCode: time 9.11e-07/1.303, allocations: 0 / 0.8136 GB, free: 73.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08598/1.389, allocations: 68.44 MB / 0.8804 GB, free: 5.328 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001497/1.389, allocations: 215.8 kB / 0.8806 GB, free: 5.066 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.537/4.927, allocations: 4 kB / 0.8806 GB, free: 5.062 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches