Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001052/0.001053, allocations: 199.8 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 226.5 MB / 243.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007663/0.0007664, allocations: 94.5 kB / 295.5 MB, free: 6.695 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2984/0.2984, allocations: 44.83 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002517/0.0002518, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2812, allocations: 62.97 MB / 0.516 GB, free: 37.39 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.02773/0.309, allocations: 42 MB / 0.557 GB, free: 7.43 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01828/0.3273, allocations: 9.154 MB / 0.5659 GB, free: 1.207 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00838/0.3357, allocations: 190.8 kB / 0.5661 GB, free: 1.18 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006305/0.342, allocations: 2.069 MB / 0.5681 GB, free: 464 kB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01743/0.3595, allocations: 6.161 MB / 0.5741 GB, free: 13.34 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003508/0.363, allocations: 0.5584 MB / 0.5747 GB, free: 12.98 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.007043/0.3701, allocations: 4.831 MB / 0.5794 GB, free: 8.344 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006335/0.3765, allocations: 3.76 MB / 0.5831 GB, free: 4.516 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002974/0.3795, allocations: 1.304 MB / 0.5843 GB, free: 3.207 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00364/0.3831, allocations: 2.079 MB / 0.5864 GB, free: 1.121 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001281/0.3845, allocations: 168 kB / 0.5865 GB, free: 0.957 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002822/0.3873, allocations: 0.9165 MB / 0.5874 GB, free: 40 kB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002563/0.3899, allocations: 1.761 MB / 0.5891 GB, free: 14.27 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003567/0.3935, allocations: 2.087 MB / 0.5912 GB, free: 12.17 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006862/0.4004, allocations: 5.956 MB / 0.597 GB, free: 6.199 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.4004, allocations: 0 / 0.597 GB, free: 6.199 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4004, allocations: 0 / 0.597 GB, free: 6.199 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000278/0.4007, allocations: 0 / 0.597 GB, free: 6.199 MB / 410.7 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.00868/0.4094, allocations: 4.176 MB / 0.6011 GB, free: 1.953 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.4095, allocations: 8.031 kB / 0.6011 GB, free: 1.945 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00196/0.4114, allocations: 0.8565 MB / 0.6019 GB, free: 1.078 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01099/0.4224, allocations: 3.293 MB / 0.6051 GB, free: 13.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004928/0.4274, allocations: 2.569 MB / 0.6076 GB, free: 11.16 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002152/0.4276, allocations: 254.2 kB / 0.6079 GB, free: 10.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001062/0.4287, allocations: 327.7 kB / 0.6082 GB, free: 10.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01943/0.4482, allocations: 12.22 MB / 0.6201 GB, free: 13.84 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001503/0.4484, allocations: 31.66 kB / 0.6202 GB, free: 13.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000926/0.4493, allocations: 155.8 kB / 0.6203 GB, free: 13.65 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004779/0.4541, allocations: 2.855 MB / 0.6231 GB, free: 10.79 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0199/0.474, allocations: 11.08 MB / 0.6339 GB, free: 15.7 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05722/0.5313, allocations: 40.73 MB / 0.6737 GB, free: 5.902 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009017/0.5403, allocations: 4.673 MB / 0.6783 GB, free: 1.008 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2094/0.7498, allocations: 2.421 MB / 0.6806 GB, free: 129.9 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001076/0.7509, allocations: 1.318 MB / 0.6819 GB, free: 128.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.751, allocations: 57.09 kB / 0.682 GB, free: 128.7 MB / 490.7 MB Notification: Performance of pre-optimization done (n=249): time 5.901e-06/0.751, allocations: 0 / 0.682 GB, free: 128.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=267): time 0.0386/0.7896, allocations: 18.64 MB / 0.7002 GB, free: 123.1 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.901e-05/0.7897, allocations: 73.78 kB / 0.7002 GB, free: 123 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004543/0.7942, allocations: 3.156 MB / 0.7033 GB, free: 121.9 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003694/0.7946, allocations: 65.53 kB / 0.7034 GB, free: 121.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001837/0.7965, allocations: 3.117 MB / 0.7064 GB, free: 119.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001111/0.7976, allocations: 0.9705 MB / 0.7074 GB, free: 118.7 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002629/0.7979, allocations: 115.3 kB / 0.7075 GB, free: 118.6 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003191/0.7982, allocations: 0.5579 MB / 0.708 GB, free: 118.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003812/0.802, allocations: 2.438 MB / 0.7104 GB, free: 117.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005301/0.8073, allocations: 5.696 MB / 0.716 GB, free: 112.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008854/0.8162, allocations: 8.941 MB / 0.7247 GB, free: 105.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001447/0.8164, allocations: 34.38 kB / 0.7247 GB, free: 105.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01481/0.8312, allocations: 8.936 MB / 0.7335 GB, free: 100.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.783e-05/0.8313, allocations: 52 kB / 0.7335 GB, free: 100.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000121/0.8315, allocations: 116 kB / 0.7336 GB, free: 100.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002803/0.8343, allocations: 1.054 MB / 0.7347 GB, free: 99.63 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004105/0.8384, allocations: 1.346 MB / 0.736 GB, free: 98.46 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005599/0.844, allocations: 5.136 MB / 0.741 GB, free: 93.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004326/0.8484, allocations: 321 kB / 0.7413 GB, free: 93.67 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008263/0.8492, allocations: 342.6 kB / 0.7416 GB, free: 93.35 MB / 490.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003685/0.8529, allocations: 2.413 MB / 0.744 GB, free: 91.27 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005433/0.8535, allocations: 315.9 kB / 0.7443 GB, free: 90.95 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007496/0.861, allocations: 5.355 MB / 0.7495 GB, free: 85.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.204e-05/0.861, allocations: 50.56 kB / 0.7496 GB, free: 85.55 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.118e-06/0.8611, allocations: 4 kB / 0.7496 GB, free: 85.55 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.838e-05/0.8611, allocations: 7.969 kB / 0.7496 GB, free: 85.54 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01795/0.879, allocations: 13.04 MB / 0.7623 GB, free: 72.33 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.887e-05/0.8791, allocations: 17.8 kB / 0.7623 GB, free: 72.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001645/0.8808, allocations: 421.9 kB / 0.7627 GB, free: 71.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002572/0.8833, allocations: 0.8924 MB / 0.7636 GB, free: 71.01 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002061/0.8836, allocations: 61.06 kB / 0.7637 GB, free: 70.95 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004767/0.8883, allocations: 4.494 MB / 0.768 GB, free: 66.33 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.398e-06/0.8884, allocations: 19.88 kB / 0.7681 GB, free: 66.31 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01004/0.8984, allocations: 7.981 MB / 0.7759 GB, free: 58.11 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009518/0.8994, allocations: 368.9 kB / 0.7762 GB, free: 57.73 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000564/0.9, allocations: 57.33 kB / 0.7763 GB, free: 57.68 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001507/0.9015, allocations: 149.2 kB / 0.7764 GB, free: 57.53 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004869/0.902, allocations: 169.5 kB / 0.7766 GB, free: 57.36 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001515/0.9022, allocations: 72.78 kB / 0.7766 GB, free: 57.29 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002219/0.9044, allocations: 1.933 MB / 0.7785 GB, free: 55.36 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.9044, allocations: 0 / 0.7785 GB, free: 55.36 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004365/0.9088, allocations: 1.079 MB / 0.7796 GB, free: 54.29 MB / 490.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009589/0.9184, allocations: 8.667 MB / 0.788 GB, free: 45.41 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007396/0.9258, allocations: 5.95 MB / 0.7939 GB, free: 39.47 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.495e-05/0.9258, allocations: 4 kB / 0.7939 GB, free: 39.47 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002492/0.9283, allocations: 2.243 MB / 0.796 GB, free: 37.21 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00652/0.9349, allocations: 440.5 kB / 0.7965 GB, free: 36.79 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04745/0.9823, allocations: 35.86 MB / 0.8315 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004087/0.9864, allocations: 3.716 MB / 0.8351 GB, free: 10.15 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002836/0.9893, allocations: 2.143 MB / 0.8372 GB, free: 8.004 MB / 0.4948 GB Notification: Performance of SimCode: time 1.152e-06/0.9893, allocations: 0 / 0.8372 GB, free: 8.004 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.164/8.153, allocations: 100.8 MB / 0.9356 GB, free: 128 MB / 0.5261 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches