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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001307/0.001307, allocations: 110.5 kB / 21.1 MB, free: 0.7695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001457/0.001457, allocations: 205 kB / 24.38 MB, free: 4.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 230.2 MB / 257.7 MB, free: 8.277 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2459/0.2459, allocations: 46.89 MB / 361 MB, free: 4.469 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003585/0.003585, allocations: 83.84 kB / 0.4962 GB, free: 8.195 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4335/0.4371, allocations: 66.03 MB / 0.5607 GB, free: 4.68 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01787/0.455, allocations: 14.94 MB / 0.5753 GB, free: 5.668 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01077/0.4657, allocations: 4.433 MB / 0.5796 GB, free: 1.223 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002912/0.4687, allocations: 91.62 kB / 0.5797 GB, free: 1.133 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004998/0.4737, allocations: 2.262 MB / 0.5819 GB, free: 14.86 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005626/0.4793, allocations: 2.047 MB / 0.5839 GB, free: 12.81 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001792/0.4811, allocations: 0.6199 MB / 0.5845 GB, free: 12.19 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.007101/0.4882, allocations: 4.307 MB / 0.5887 GB, free: 7.871 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004907/0.4931, allocations: 2.409 MB / 0.591 GB, free: 5.41 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003791/0.4969, allocations: 1.62 MB / 0.5926 GB, free: 3.785 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005273/0.5021, allocations: 2.426 MB / 0.595 GB, free: 1.352 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001277/0.5034, allocations: 344 kB / 0.5953 GB, free: 1.016 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00289/0.5063, allocations: 0.9479 MB / 0.5962 GB, free: 68 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003292/0.5096, allocations: 2.017 MB / 0.5982 GB, free: 14.04 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004183/0.5138, allocations: 2.372 MB / 0.6005 GB, free: 11.66 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01352/0.5273, allocations: 7.749 MB / 0.6081 GB, free: 3.875 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.5273, allocations: 0 / 0.6081 GB, free: 3.875 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5273, allocations: 0 / 0.6081 GB, free: 3.875 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002283/0.5275, allocations: 4 kB / 0.6081 GB, free: 3.871 MB / 446.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.01569/0.5432, allocations: 5.212 MB / 0.6132 GB, free: 14.57 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.208e-05/0.5433, allocations: 8.031 kB / 0.6132 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00229/0.5456, allocations: 0.8526 MB / 0.614 GB, free: 13.7 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01378/0.5594, allocations: 3.23 MB / 0.6172 GB, free: 10.46 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006567/0.5659, allocations: 2.605 MB / 0.6197 GB, free: 7.809 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002924/0.5662, allocations: 258.4 kB / 0.62 GB, free: 7.555 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001274/0.5675, allocations: 335.7 kB / 0.6203 GB, free: 7.227 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0223/0.5898, allocations: 12.23 MB / 0.6322 GB, free: 10.46 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001257/0.5899, allocations: 35.7 kB / 0.6323 GB, free: 10.43 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004619/0.5904, allocations: 151.8 kB / 0.6324 GB, free: 10.28 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004813/0.5952, allocations: 2.844 MB / 0.6352 GB, free: 7.43 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02355/0.6188, allocations: 11.13 MB / 0.6461 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06183/0.6806, allocations: 40.58 MB / 0.6857 GB, free: 2.668 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009548/0.6901, allocations: 4.51 MB / 0.6901 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003581/0.6937, allocations: 2.252 MB / 0.6923 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001371/0.6951, allocations: 1.315 MB / 0.6936 GB, free: 10.13 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.308e-05/0.6951, allocations: 56.56 kB / 0.6936 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=249): time 7.133e-06/0.6951, allocations: 0 / 0.6936 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of matching and sorting (n=267): time 0.04436/0.7395, allocations: 18.81 MB / 0.712 GB, free: 7.117 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.047e-05/0.7396, allocations: 73.41 kB / 0.7121 GB, free: 7.031 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004563/0.7441, allocations: 3.188 MB / 0.7152 GB, free: 3.832 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0003406/0.7445, allocations: 65.69 kB / 0.7152 GB, free: 3.762 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002689/0.7472, allocations: 3.237 MB / 0.7184 GB, free: 0.4961 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00129/0.7484, allocations: 1.012 MB / 0.7194 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001692/0.7501, allocations: 1.191 MB / 0.7206 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000218/0.7504, allocations: 301.1 kB / 0.7208 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004058/0.7544, allocations: 2.463 MB / 0.7232 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007354/0.7618, allocations: 5.726 MB / 0.7288 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3217/1.083, allocations: 8.966 MB / 0.7376 GB, free: 146.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.891e-05/1.084, allocations: 35.31 kB / 0.7376 GB, free: 146.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01509/1.099, allocations: 8.982 MB / 0.7464 GB, free: 143.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.556e-05/1.099, allocations: 57.25 kB / 0.7465 GB, free: 143.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001331/1.099, allocations: 117.6 kB / 0.7466 GB, free: 143.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002794/1.102, allocations: 1.056 MB / 0.7476 GB, free: 143.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004259/1.106, allocations: 1.339 MB / 0.7489 GB, free: 143.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006786/1.113, allocations: 5.551 MB / 0.7543 GB, free: 140.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004785/1.117, allocations: 320.6 kB / 0.7546 GB, free: 140.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000941/1.118, allocations: 339.9 kB / 0.755 GB, free: 139.9 MB / 0.5606 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.004099/1.123, allocations: 2.41 MB / 0.7573 GB, free: 137.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005962/1.123, allocations: 328 kB / 0.7576 GB, free: 137.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007587/1.131, allocations: 5.358 MB / 0.7629 GB, free: 133.4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-05/1.131, allocations: 47.98 kB / 0.7629 GB, free: 133.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.439e-05/1.131, allocations: 4 kB / 0.7629 GB, free: 133.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.989e-05/1.131, allocations: 9.938 kB / 0.7629 GB, free: 133.3 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01773/1.149, allocations: 13.02 MB / 0.7756 GB, free: 120.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.627e-05/1.149, allocations: 12 kB / 0.7756 GB, free: 120.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001558/1.15, allocations: 423.3 kB / 0.776 GB, free: 119.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00231/1.152, allocations: 0.89 MB / 0.7769 GB, free: 118.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002086/1.153, allocations: 55.19 kB / 0.777 GB, free: 118.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004647/1.157, allocations: 4.829 MB / 0.7817 GB, free: 114 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/1.157, allocations: 19.94 kB / 0.7817 GB, free: 114 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009341/1.167, allocations: 8.021 MB / 0.7895 GB, free: 105.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007604/1.167, allocations: 378.9 kB / 0.7899 GB, free: 105.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004017/1.168, allocations: 48 kB / 0.7899 GB, free: 105.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001215/1.169, allocations: 159.6 kB / 0.7901 GB, free: 105.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003209/1.169, allocations: 174.4 kB / 0.7903 GB, free: 105.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001429/1.169, allocations: 79.98 kB / 0.7903 GB, free: 105.1 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002245/1.172, allocations: 1.961 MB / 0.7922 GB, free: 103.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8.1e-08/1.172, allocations: 4 kB / 0.7922 GB, free: 103.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005131/1.177, allocations: 1.067 MB / 0.7933 GB, free: 102 MB / 0.5606 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.009522/1.186, allocations: 8.689 MB / 0.8018 GB, free: 93.14 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007296/1.194, allocations: 5.779 MB / 0.8074 GB, free: 87.37 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/1.194, allocations: 8.125 kB / 0.8074 GB, free: 87.36 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002525/1.196, allocations: 2.1 MB / 0.8095 GB, free: 85.26 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002278/1.198, allocations: 447.9 kB / 0.8099 GB, free: 84.83 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05816/1.257, allocations: 47.16 MB / 0.856 GB, free: 32.46 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003855/1.26, allocations: 3.7 MB / 0.8596 GB, free: 28.73 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003863/1.264, allocations: 2.161 MB / 0.8617 GB, free: 26.56 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003/1.267, allocations: 2.104 MB / 0.8637 GB, free: 24.45 MB / 0.5606 GB Notification: Performance of SimCode: time 1.553e-06/1.267, allocations: 0 / 0.8637 GB, free: 24.45 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1807/1.448, allocations: 72.04 MB / 0.9341 GB, free: 0.6523 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.26/28.71, allocations: 19.11 kB / 0.9341 GB, free: 0.6406 MB / 0.6075 GB " [Timeout remaining time 631] (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar_res.csv","/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) [Timeout 660] "Error: Could not read variable planar.w in file ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar_res.csv. Warning: Get data of variable planar.w from file ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 31.85534507711418]