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.001522/0.001522, allocations: 118.5 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00162/0.00162, allocations: 197.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.607/1.607, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.256/0.256, allocations: 46.12 MB / 344.4 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002592/0.002592, allocations: 83.88 kB / 480.9 MB, free: 4.477 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3391/0.3417, allocations: 62.46 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.01847/0.3602, allocations: 14.95 MB / 0.5452 GB, free: 1.621 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01091/0.3712, allocations: 4.426 MB / 0.5496 GB, free: 14.17 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002596/0.3738, allocations: 80.66 kB / 0.5496 GB, free: 14.16 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004981/0.3788, allocations: 2.219 MB / 0.5518 GB, free: 11.94 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005583/0.3845, allocations: 1.977 MB / 0.5537 GB, free: 9.953 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001807/0.3863, allocations: 0.6161 MB / 0.5543 GB, free: 9.336 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006364/0.3927, allocations: 4.313 MB / 0.5585 GB, free: 5.016 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003927/0.3967, allocations: 3.153 MB / 0.5616 GB, free: 1.816 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002179/0.3989, allocations: 1.561 MB / 0.5631 GB, free: 256 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002988/0.4019, allocations: 2.227 MB / 0.5653 GB, free: 14.02 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006915/0.4026, allocations: 344 kB / 0.5657 GB, free: 13.68 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002144/0.4047, allocations: 1.034 MB / 0.5667 GB, free: 12.64 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002042/0.4068, allocations: 1.967 MB / 0.5686 GB, free: 10.67 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002624/0.4094, allocations: 2.376 MB / 0.5709 GB, free: 8.281 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009454/0.4189, allocations: 7.777 MB / 0.5785 GB, free: 484 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.4189, allocations: 4 kB / 0.5785 GB, free: 480 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4189, allocations: 0 / 0.5785 GB, free: 480 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001812/0.4191, allocations: 4 kB / 0.5785 GB, free: 476 kB / 430.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.01051/0.4296, allocations: 5.204 MB / 0.5836 GB, free: 11.18 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/0.4297, allocations: 12.03 kB / 0.5836 GB, free: 11.17 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001543/0.4313, allocations: 0.8525 MB / 0.5844 GB, free: 10.3 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01194/0.4432, allocations: 3.23 MB / 0.5876 GB, free: 7.066 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006332/0.4496, allocations: 2.608 MB / 0.5901 GB, free: 4.406 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000331/0.45, allocations: 254.4 kB / 0.5904 GB, free: 4.156 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001614/0.4516, allocations: 327.8 kB / 0.5907 GB, free: 3.836 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02386/0.4755, allocations: 12.24 MB / 0.6026 GB, free: 7.059 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001388/0.4757, allocations: 35.7 kB / 0.6027 GB, free: 7.023 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007778/0.4765, allocations: 155.8 kB / 0.6028 GB, free: 6.871 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005256/0.4817, allocations: 2.844 MB / 0.6056 GB, free: 4.02 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02303/0.5048, allocations: 11.12 MB / 0.6165 GB, free: 8.879 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06389/0.5687, allocations: 40.58 MB / 0.6561 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0101/0.5789, allocations: 4.687 MB / 0.6607 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003858/0.5828, allocations: 2.435 MB / 0.6631 GB, free: 7.902 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00145/0.5842, allocations: 1.315 MB / 0.6643 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.072e-05/0.5843, allocations: 56.56 kB / 0.6644 GB, free: 6.301 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=249): time 5.46e-06/0.5843, allocations: 0 / 0.6644 GB, free: 6.301 MB / 0.5137 GB Notification: Performance of matching and sorting (n=267): time 0.05124/0.6356, allocations: 18.77 MB / 0.6827 GB, free: 3.387 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.721e-05/0.6357, allocations: 73.41 kB / 0.6828 GB, free: 3.301 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005428/0.6412, allocations: 3.188 MB / 0.6859 GB, free: 104 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005114/0.6417, allocations: 69.69 kB / 0.686 GB, free: 28 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002712/0.6444, allocations: 3.233 MB / 0.6891 GB, free: 12.77 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001489/0.646, allocations: 1.015 MB / 0.6901 GB, free: 11.74 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002602/0.6486, allocations: 1.191 MB / 0.6913 GB, free: 10.54 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.00016/0.6488, allocations: 301.1 kB / 0.6916 GB, free: 10.24 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004503/0.6533, allocations: 2.463 MB / 0.694 GB, free: 7.773 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007642/0.6609, allocations: 5.722 MB / 0.6996 GB, free: 456 kB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01249/0.6735, allocations: 8.969 MB / 0.7083 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.918e-05/0.6736, allocations: 32 kB / 0.7084 GB, free: 5.848 MB / 0.5606 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01846/0.6921, allocations: 8.998 MB / 0.7171 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 9.488e-05/0.6922, allocations: 56.25 kB / 0.7172 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001544/0.6924, allocations: 112 kB / 0.7173 GB, free: 12.67 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003527/0.6959, allocations: 1.05 MB / 0.7183 GB, free: 11.62 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004841/0.7008, allocations: 1.345 MB / 0.7196 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008523/0.7093, allocations: 5.541 MB / 0.7251 GB, free: 4.594 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004329/0.7137, allocations: 323.7 kB / 0.7254 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001093/0.7148, allocations: 340 kB / 0.7257 GB, free: 3.945 MB / 0.5762 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.005049/0.7199, allocations: 2.413 MB / 0.728 GB, free: 1.52 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007945/0.7207, allocations: 329.8 kB / 0.7284 GB, free: 1.195 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2626/0.9833, allocations: 5.358 MB / 0.7336 GB, free: 175.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.218e-05/0.9834, allocations: 52.56 kB / 0.7336 GB, free: 175.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/0.9834, allocations: 7.625 kB / 0.7336 GB, free: 175.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.533e-05/0.9835, allocations: 12.92 kB / 0.7337 GB, free: 175.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0214/1.005, allocations: 13.02 MB / 0.7464 GB, free: 171.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-05/1.005, allocations: 11.34 kB / 0.7464 GB, free: 171.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001744/1.007, allocations: 422 kB / 0.7468 GB, free: 171.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002554/1.009, allocations: 0.8829 MB / 0.7476 GB, free: 171.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004101/1.01, allocations: 60.94 kB / 0.7477 GB, free: 171.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00531/1.015, allocations: 4.842 MB / 0.7524 GB, free: 168.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.628e-06/1.015, allocations: 16.66 kB / 0.7524 GB, free: 168.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01005/1.025, allocations: 8.034 MB / 0.7603 GB, free: 161.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007817/1.026, allocations: 380.8 kB / 0.7607 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005585/1.027, allocations: 52 kB / 0.7607 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001421/1.028, allocations: 158.9 kB / 0.7609 GB, free: 161.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003956/1.028, allocations: 173 kB / 0.761 GB, free: 161.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001662/1.029, allocations: 79.88 kB / 0.7611 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0025/1.031, allocations: 1.965 MB / 0.763 GB, free: 159.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.61e-07/1.031, allocations: 0 / 0.763 GB, free: 159.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005106/1.036, allocations: 1.057 MB / 0.7641 GB, free: 158.3 MB / 0.5762 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.009969/1.046, allocations: 8.704 MB / 0.7726 GB, free: 149.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007971/1.054, allocations: 6.042 MB / 0.7785 GB, free: 143.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.233e-05/1.054, allocations: 1 kB / 0.7785 GB, free: 143.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002936/1.057, allocations: 2.249 MB / 0.7806 GB, free: 141.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002965/1.06, allocations: 453.7 kB / 0.7811 GB, free: 140.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06756/1.128, allocations: 47.05 MB / 0.827 GB, free: 88.74 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005315/1.133, allocations: 3.704 MB / 0.8306 GB, free: 85 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004206/1.137, allocations: 2.15 MB / 0.8327 GB, free: 82.84 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003031/1.141, allocations: 2.104 MB / 0.8348 GB, free: 80.74 MB / 0.5762 GB Notification: Performance of SimCode: time 1.022e-06/1.141, allocations: 0 / 0.8348 GB, free: 80.74 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09986/1.24, allocations: 66.63 MB / 0.8999 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.42/27.66, allocations: 11.22 kB / 0.8999 GB, free: 14.37 MB / 0.5762 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