Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0007809/0.0007807, allocations: 176 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000842/0.000842, allocations: 93.3 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3135/0.3135, allocations: 43.56 MB / 363.1 MB, free: 51.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003496/0.0003497, allocations: 12 kB / 432.1 MB, free: 5.5 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1038, allocations: 58.85 MB / 490.9 MB, free: 10.56 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.1962/0.3, allocations: 26.73 MB / 0.5055 GB, free: 31.35 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01457/0.3146, allocations: 6.493 MB / 0.5119 GB, free: 27.01 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00539/0.3201, allocations: 121.8 kB / 0.512 GB, free: 26.99 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004789/0.3249, allocations: 1.286 MB / 0.5132 GB, free: 26.54 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01008/0.335, allocations: 4.081 MB / 0.5172 GB, free: 24.88 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001864/0.3369, allocations: 459.4 kB / 0.5177 GB, free: 24.72 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00467/0.3416, allocations: 4.437 MB / 0.522 GB, free: 23.28 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002696/0.3443, allocations: 2.273 MB / 0.5242 GB, free: 22.33 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001536/0.3459, allocations: 1.069 MB / 0.5253 GB, free: 21.98 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001984/0.3479, allocations: 1.742 MB / 0.527 GB, free: 21.48 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004885/0.3484, allocations: 142.1 kB / 0.5271 GB, free: 21.48 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00196/0.3504, allocations: 1.052 MB / 0.5281 GB, free: 21.23 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001411/0.3518, allocations: 1.576 MB / 0.5297 GB, free: 20.77 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001605/0.3534, allocations: 1.77 MB / 0.5314 GB, free: 19.53 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006234/0.3597, allocations: 4.915 MB / 0.5362 GB, free: 18.53 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.3597, allocations: 0 / 0.5362 GB, free: 18.53 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.3597, allocations: 2.906 kB / 0.5362 GB, free: 18.53 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002396/0.36, allocations: 0 / 0.5362 GB, free: 18.53 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1560 * Number of variables: 1560 Notification: Performance of Generate backend data structure: time 0.007153/0.3671, allocations: 3.587 MB / 0.5397 GB, free: 16.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.3672, allocations: 10.12 kB / 0.5397 GB, free: 16.19 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001652/0.3689, allocations: 0.7105 MB / 0.5404 GB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01099/0.3799, allocations: 3.293 MB / 0.5436 GB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005677/0.3856, allocations: 2.874 MB / 0.5464 GB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002109/0.3858, allocations: 190.6 kB / 0.5466 GB, free: 12.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001234/0.3871, allocations: 332.1 kB / 0.5469 GB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01757/0.4047, allocations: 10.78 MB / 0.5574 GB, free: 5.484 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001341/0.4048, allocations: 23.81 kB / 0.5575 GB, free: 5.461 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001026/0.4059, allocations: 119.8 kB / 0.5576 GB, free: 5.344 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003778/0.4097, allocations: 2.565 MB / 0.5601 GB, free: 2.777 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0203/0.43, allocations: 10.25 MB / 0.5701 GB, free: 8.512 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05831/0.4884, allocations: 35.86 MB / 0.6051 GB, free: 3.801 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008431/0.4968, allocations: 4.43 MB / 0.6094 GB, free: 15.14 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003432/0.5003, allocations: 2.197 MB / 0.6116 GB, free: 12.95 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001306/0.5016, allocations: 1.319 MB / 0.6129 GB, free: 11.4 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.562e-05/0.5017, allocations: 60.55 kB / 0.6129 GB, free: 11.34 MB / 442.7 MB Notification: Performance of pre-optimization done (n=245): time 6.272e-06/0.5017, allocations: 3.938 kB / 0.6129 GB, free: 11.33 MB / 442.7 MB Notification: Performance of matching and sorting (n=261): time 0.04228/0.544, allocations: 17.05 MB / 0.6296 GB, free: 10.12 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0013/0.5454, allocations: 1.546 MB / 0.6311 GB, free: 8.418 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004785/0.5502, allocations: 2.78 MB / 0.6338 GB, free: 5.625 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003778/0.5506, allocations: 57.7 kB / 0.6339 GB, free: 5.562 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001891/0.5525, allocations: 2.732 MB / 0.6365 GB, free: 2.789 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001214/0.5537, allocations: 0.9636 MB / 0.6375 GB, free: 1.812 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000555/0.5543, allocations: 108 kB / 0.6376 GB, free: 1.707 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004576/0.5547, allocations: 0.5538 MB / 0.6381 GB, free: 1.145 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004043/0.5588, allocations: 2.435 MB / 0.6405 GB, free: 14.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005963/0.5648, allocations: 5.478 MB / 0.6459 GB, free: 7.742 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01069/0.5755, allocations: 8.627 MB / 0.6543 GB, free: 13.63 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.088e-05/0.5756, allocations: 28 kB / 0.6543 GB, free: 13.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=754) (initialization): time 0.0231/0.5987, allocations: 9.485 MB / 0.6636 GB, free: 4.098 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001243/0.5989, allocations: 56.92 kB / 0.6636 GB, free: 4.043 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01314/0.612, allocations: 4.57 MB / 0.6681 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0102/0.6222, allocations: 2.008 MB / 0.67 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004547/0.6268, allocations: 1.298 MB / 0.6713 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007357/0.6342, allocations: 4.952 MB / 0.6761 GB, free: 6.914 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005007/0.6392, allocations: 407.7 kB / 0.6765 GB, free: 6.516 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001313/0.6406, allocations: 328 kB / 0.6769 GB, free: 6.195 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 481 * Number of states: 0 () * Number of discrete variables: 24 (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],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.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 (692): * Single equations (assignments): 680 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005118/0.6457, allocations: 2.115 MB / 0.6789 GB, free: 4.07 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007798/0.6465, allocations: 284.2 kB / 0.6792 GB, free: 3.789 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.213/0.8595, allocations: 5.43 MB / 0.6845 GB, free: 151.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01049/0.87, allocations: 4.681 MB / 0.6891 GB, free: 151.7 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.967e-05/0.8701, allocations: 2.781 kB / 0.6891 GB, free: 151.7 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-05/0.8701, allocations: 9.797 kB / 0.6891 GB, free: 151.7 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02623/0.8964, allocations: 14.73 MB / 0.7035 GB, free: 147.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.043e-05/0.8965, allocations: 9.844 kB / 0.7035 GB, free: 147.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001799/0.8983, allocations: 422 kB / 0.7039 GB, free: 147.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004186/0.9025, allocations: 1.24 MB / 0.7051 GB, free: 147.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002878/0.9028, allocations: 73.59 kB / 0.7051 GB, free: 147.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003884/0.9067, allocations: 4.441 MB / 0.7095 GB, free: 144.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000746/0.9075, allocations: 1.465 MB / 0.7109 GB, free: 143 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.013/0.9205, allocations: 8.143 MB / 0.7189 GB, free: 140.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009018/0.9214, allocations: 343.3 kB / 0.7192 GB, free: 140 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007057/0.9221, allocations: 55.88 kB / 0.7192 GB, free: 140 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001904/0.924, allocations: 204.5 kB / 0.7194 GB, free: 140 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006012/0.9247, allocations: 172.5 kB / 0.7196 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002377/0.9249, allocations: 78.56 kB / 0.7197 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003481/0.9284, allocations: 1.698 MB / 0.7213 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.11e-07/0.9284, allocations: 0 / 0.7213 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005095/0.9335, allocations: 1.068 MB / 0.7224 GB, free: 139.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[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 (202): * Single equations (assignments): 192 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01267/0.9462, allocations: 8.694 MB / 0.7309 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00912/0.9554, allocations: 6.478 MB / 0.7372 GB, free: 133.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/0.9554, allocations: 0 / 0.7372 GB, free: 133.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004377/0.9598, allocations: 2.898 MB / 0.74 GB, free: 132.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005797/0.9656, allocations: 391.9 kB / 0.7404 GB, free: 132 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05851/1.024, allocations: 33.98 MB / 0.7736 GB, free: 95.86 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004822/1.029, allocations: 3.315 MB / 0.7768 GB, free: 92.52 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002811/1.032, allocations: 1.854 MB / 0.7786 GB, free: 90.66 MB / 0.4948 GB Notification: Performance of SimCode: time 1.092e-06/1.032, allocations: 0 / 0.7786 GB, free: 90.66 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.64/8.672, allocations: 145.6 MB / 0.9208 GB, free: 150.8 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/FreeMotion/FreeMotion.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches