Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001233/0.001233, allocations: 117.1 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001374/0.001374, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2206/0.2206, allocations: 46.1 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3679/0.3694, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.01528/0.3847, allocations: 13.97 MB / 0.5442 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01134/0.3961, allocations: 4.421 MB / 0.5485 GB, free: 15.03 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003211/0.3994, allocations: 75.34 kB / 0.5485 GB, free: 15.02 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005624/0.4051, allocations: 2.357 MB / 0.5508 GB, free: 12.94 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006252/0.4113, allocations: 1.887 MB / 0.5527 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002047/0.4134, allocations: 0.5926 MB / 0.5533 GB, free: 10.45 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006391/0.4198, allocations: 4.152 MB / 0.5573 GB, free: 6.285 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006028/0.4259, allocations: 3.579 MB / 0.5608 GB, free: 2.656 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003046/0.4289, allocations: 1.585 MB / 0.5624 GB, free: 1.066 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003542/0.4325, allocations: 2.149 MB / 0.5645 GB, free: 14.91 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001158/0.4337, allocations: 344 kB / 0.5648 GB, free: 14.57 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003217/0.4369, allocations: 1.205 MB / 0.566 GB, free: 13.37 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002833/0.4398, allocations: 1.999 MB / 0.5679 GB, free: 11.36 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004736/0.4445, allocations: 2.388 MB / 0.5703 GB, free: 8.961 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01078/0.4553, allocations: 7.805 MB / 0.5779 GB, free: 1.129 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.4554, allocations: 0 / 0.5779 GB, free: 1.129 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4554, allocations: 0 / 0.5779 GB, free: 1.129 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002586/0.4556, allocations: 0 / 0.5779 GB, free: 1.129 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1811 * Number of variables: 1811 Notification: Performance of Generate backend data structure: time 0.01289/0.4685, allocations: 5.354 MB / 0.5831 GB, free: 11.71 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.4686, allocations: 11.97 kB / 0.5831 GB, free: 11.7 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001205/0.4698, allocations: 0.8561 MB / 0.584 GB, free: 10.83 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0102/0.48, allocations: 3.172 MB / 0.587 GB, free: 7.648 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005302/0.4854, allocations: 2.489 MB / 0.5895 GB, free: 5.113 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002009/0.4856, allocations: 266.7 kB / 0.5897 GB, free: 4.852 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008888/0.4865, allocations: 343.7 kB / 0.5901 GB, free: 4.516 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02/0.5065, allocations: 12.17 MB / 0.6019 GB, free: 7.859 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001152/0.5066, allocations: 31.81 kB / 0.602 GB, free: 7.828 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004911/0.5071, allocations: 159.8 kB / 0.6021 GB, free: 7.672 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003986/0.5111, allocations: 2.637 MB / 0.6047 GB, free: 5.031 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02166/0.5328, allocations: 11.21 MB / 0.6157 GB, free: 9.801 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05689/0.5897, allocations: 38.87 MB / 0.6536 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01043/0.6002, allocations: 4.971 MB / 0.6585 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003473/0.6037, allocations: 2.369 MB / 0.6608 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01119/0.6149, allocations: 6.819 MB / 0.6674 GB, free: 3.246 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.876e-05/0.615, allocations: 60.55 kB / 0.6675 GB, free: 3.18 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=226): time 5.711e-06/0.615, allocations: 0 / 0.6675 GB, free: 3.18 MB / 0.5137 GB Notification: Performance of matching and sorting (n=235): time 0.03882/0.6539, allocations: 16.18 MB / 0.6833 GB, free: 2.848 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.479e-05/0.654, allocations: 73.41 kB / 0.6834 GB, free: 2.766 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006235/0.6602, allocations: 3.125 MB / 0.6864 GB, free: 15.62 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0003489/0.6606, allocations: 53.7 kB / 0.6865 GB, free: 15.56 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002584/0.6632, allocations: 3.189 MB / 0.6896 GB, free: 12.33 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00114/0.6643, allocations: 0.8866 MB / 0.6905 GB, free: 11.43 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002579/0.6669, allocations: 1.206 MB / 0.6916 GB, free: 10.21 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.894e-05/0.6671, allocations: 301.1 kB / 0.6919 GB, free: 9.914 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003808/0.6709, allocations: 2.37 MB / 0.6942 GB, free: 7.539 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006124/0.677, allocations: 5.689 MB / 0.6998 GB, free: 216 kB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01042/0.6875, allocations: 8.752 MB / 0.7083 GB, free: 5.832 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.803e-05/0.6876, allocations: 32 kB / 0.7084 GB, free: 5.801 MB / 0.5606 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01613/0.7037, allocations: 8.821 MB / 0.717 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 8.916e-05/0.7038, allocations: 56 kB / 0.717 GB, free: 12.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001303/0.704, allocations: 112 kB / 0.7171 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003518/0.7075, allocations: 1.138 MB / 0.7183 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004669/0.7122, allocations: 1.345 MB / 0.7196 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009516/0.7217, allocations: 6.95 MB / 0.7264 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00399/0.7258, allocations: 319.8 kB / 0.7267 GB, free: 2.758 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007192/0.7265, allocations: 348 kB / 0.727 GB, free: 2.418 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 527 * Number of states: 0 () * Number of discrete variables: 32 (freeMotionScalarInit.arrow.arrow.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[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],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.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 (730): * Single equations (assignments): 722 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,5)} Notification: Performance of prepare postOptimizeDAE: time 0.004017/0.7305, allocations: 2.341 MB / 0.7293 GB, free: 64 kB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2665/0.997, allocations: 289.6 kB / 0.7296 GB, free: 176.8 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008447/1.006, allocations: 4.399 MB / 0.7338 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.897e-05/1.006, allocations: 47.83 kB / 0.7339 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/1.006, allocations: 3.719 kB / 0.7339 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.816e-05/1.006, allocations: 8.938 kB / 0.7339 GB, free: 175.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01601/1.022, allocations: 10.28 MB / 0.7439 GB, free: 172.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/1.022, allocations: 5.031 kB / 0.7439 GB, free: 172.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001443/1.023, allocations: 378.1 kB / 0.7443 GB, free: 172.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001757/1.025, allocations: 0.6704 MB / 0.745 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001721/1.025, allocations: 55.11 kB / 0.745 GB, free: 172.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002192/1.027, allocations: 2.57 MB / 0.7475 GB, free: 170.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.179e-06/1.027, allocations: 7.812 kB / 0.7475 GB, free: 170.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007667/1.035, allocations: 6.73 MB / 0.7541 GB, free: 168.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006638/1.036, allocations: 337.2 kB / 0.7544 GB, free: 168.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003651/1.036, allocations: 46.12 kB / 0.7545 GB, free: 168.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/1.037, allocations: 141.1 kB / 0.7546 GB, free: 168.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000238/1.037, allocations: 132.6 kB / 0.7547 GB, free: 168 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001321/1.038, allocations: 63.66 kB / 0.7548 GB, free: 168 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002296/1.04, allocations: 1.895 MB / 0.7566 GB, free: 166.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/1.04, allocations: 0 / 0.7566 GB, free: 166.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004087/1.044, allocations: 1.037 MB / 0.7577 GB, free: 165.1 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,body.w_a[1],body.w_a[2],body.w_a[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 (187): * Single equations (assignments): 178 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007528/1.052, allocations: 7.399 MB / 0.7649 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007218/1.059, allocations: 5.945 MB / 0.7707 GB, free: 151.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/1.059, allocations: 4 kB / 0.7707 GB, free: 151.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003099/1.062, allocations: 2.401 MB / 0.773 GB, free: 149.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002316/1.064, allocations: 489.9 kB / 0.7735 GB, free: 149 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05387/1.118, allocations: 44.99 MB / 0.8174 GB, free: 98.96 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003741/1.122, allocations: 3.634 MB / 0.821 GB, free: 95.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003861/1.126, allocations: 2.012 MB / 0.823 GB, free: 93.29 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00272/1.129, allocations: 2.046 MB / 0.825 GB, free: 91.24 MB / 0.5762 GB Notification: Performance of SimCode: time 1.192e-06/1.129, allocations: 0 / 0.825 GB, free: 91.24 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09475/1.223, allocations: 65.67 MB / 0.8891 GB, free: 25.93 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.39/20.62, allocations: 10.38 kB / 0.8891 GB, free: 25.92 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotionScalarInit3/FreeMotionScalarInit3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches