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.001146/0.001146, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001274, allocations: 198 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.224/0.224, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001776/0.001776, allocations: 79.88 kB / 480.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3101/0.3119, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.01455/0.3265, allocations: 13.97 MB / 0.5442 GB, free: 2.441 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009924/0.3365, allocations: 4.422 MB / 0.5485 GB, free: 15.01 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002543/0.3391, allocations: 83.62 kB / 0.5486 GB, free: 14.99 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004691/0.3438, allocations: 2.349 MB / 0.5508 GB, free: 12.91 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004606/0.3484, allocations: 1.894 MB / 0.5527 GB, free: 11.02 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001522/0.35, allocations: 0.5887 MB / 0.5533 GB, free: 10.43 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005244/0.3552, allocations: 4.152 MB / 0.5573 GB, free: 6.262 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004338/0.3596, allocations: 3.586 MB / 0.5608 GB, free: 2.625 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002582/0.3622, allocations: 1.577 MB / 0.5624 GB, free: 1.043 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003518/0.3657, allocations: 2.157 MB / 0.5645 GB, free: 14.88 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001097/0.3669, allocations: 344 kB / 0.5648 GB, free: 14.54 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002824/0.3697, allocations: 1.194 MB / 0.566 GB, free: 13.35 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002272/0.372, allocations: 2.003 MB / 0.5679 GB, free: 11.34 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003209/0.3752, allocations: 2.376 MB / 0.5702 GB, free: 8.949 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008044/0.3833, allocations: 7.809 MB / 0.5779 GB, free: 1.113 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.3833, allocations: 7.938 kB / 0.5779 GB, free: 1.105 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3833, allocations: 4 kB / 0.5779 GB, free: 1.102 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002189/0.3836, allocations: 0 / 0.5779 GB, free: 1.102 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.01215/0.3957, allocations: 5.354 MB / 0.5831 GB, free: 11.68 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3958, allocations: 12.03 kB / 0.5831 GB, free: 11.67 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001353/0.3971, allocations: 0.8483 MB / 0.5839 GB, free: 10.81 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01075/0.4079, allocations: 3.176 MB / 0.5871 GB, free: 7.625 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005797/0.4137, allocations: 2.496 MB / 0.5895 GB, free: 5.082 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001971/0.4139, allocations: 266.7 kB / 0.5897 GB, free: 4.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001029/0.415, allocations: 343.7 kB / 0.5901 GB, free: 4.484 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01965/0.4346, allocations: 12.18 MB / 0.602 GB, free: 7.832 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001181/0.4348, allocations: 27.75 kB / 0.602 GB, free: 7.805 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000604/0.4354, allocations: 155.8 kB / 0.6021 GB, free: 7.652 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003939/0.4394, allocations: 2.637 MB / 0.6047 GB, free: 5.012 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02131/0.4607, allocations: 11.21 MB / 0.6157 GB, free: 9.785 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05735/0.5181, allocations: 38.87 MB / 0.6536 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01016/0.5283, allocations: 4.974 MB / 0.6585 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003502/0.5318, allocations: 2.365 MB / 0.6608 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01212/0.544, allocations: 6.823 MB / 0.6675 GB, free: 3.227 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.592e-05/0.5441, allocations: 52.56 kB / 0.6675 GB, free: 3.168 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=226): time 5.27e-06/0.5441, allocations: 0 / 0.6675 GB, free: 3.168 MB / 0.5137 GB Notification: Performance of matching and sorting (n=235): time 0.03895/0.583, allocations: 16.18 MB / 0.6833 GB, free: 2.832 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.454e-05/0.5831, allocations: 73.41 kB / 0.6834 GB, free: 2.75 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003971/0.5871, allocations: 3.128 MB / 0.6864 GB, free: 15.6 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0003427/0.5875, allocations: 53.7 kB / 0.6865 GB, free: 15.54 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001964/0.5895, allocations: 3.193 MB / 0.6896 GB, free: 12.31 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009237/0.5904, allocations: 0.8788 MB / 0.6905 GB, free: 11.42 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001552/0.592, allocations: 1.202 MB / 0.6916 GB, free: 10.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.734e-05/0.5921, allocations: 301.1 kB / 0.6919 GB, free: 9.906 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003344/0.5954, allocations: 2.374 MB / 0.6942 GB, free: 7.527 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005589/0.601, allocations: 5.689 MB / 0.6998 GB, free: 204 kB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00965/0.6107, allocations: 8.756 MB / 0.7083 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.236e-05/0.6108, allocations: 32 kB / 0.7084 GB, free: 5.785 MB / 0.5606 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01623/0.6271, allocations: 8.826 MB / 0.717 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 9.901e-05/0.6272, allocations: 56 kB / 0.717 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001557/0.6274, allocations: 116 kB / 0.7172 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00376/0.6311, allocations: 1.129 MB / 0.7183 GB, free: 11.63 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004719/0.6359, allocations: 1.349 MB / 0.7196 GB, free: 10.28 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00979/0.6457, allocations: 6.948 MB / 0.7264 GB, free: 3.051 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00408/0.6498, allocations: 315.8 kB / 0.7267 GB, free: 2.742 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001047/0.6509, allocations: 340 kB / 0.727 GB, free: 2.41 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.003984/0.6549, allocations: 2.349 MB / 0.7293 GB, free: 48 kB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2308/0.8857, allocations: 290.2 kB / 0.7296 GB, free: 176.8 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00924/0.895, allocations: 4.394 MB / 0.7338 GB, free: 176 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-05/0.8951, allocations: 45.55 kB / 0.7339 GB, free: 176 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.364e-05/0.8951, allocations: 4.969 kB / 0.7339 GB, free: 176 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.796e-05/0.8952, allocations: 7.547 kB / 0.7339 GB, free: 176 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01891/0.9141, allocations: 10.29 MB / 0.7439 GB, free: 172.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.561e-05/0.9142, allocations: 7.844 kB / 0.744 GB, free: 172.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001583/0.9157, allocations: 373 kB / 0.7443 GB, free: 172.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001831/0.9176, allocations: 0.6769 MB / 0.745 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002229/0.9178, allocations: 51.19 kB / 0.745 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002175/0.92, allocations: 2.563 MB / 0.7475 GB, free: 170.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.92, allocations: 12.81 kB / 0.7475 GB, free: 170.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007935/0.928, allocations: 6.727 MB / 0.7541 GB, free: 168.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006928/0.9287, allocations: 336.8 kB / 0.7544 GB, free: 168.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003615/0.9291, allocations: 47.12 kB / 0.7545 GB, free: 168.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001195/0.9303, allocations: 143.4 kB / 0.7546 GB, free: 168.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002805/0.9306, allocations: 133.4 kB / 0.7547 GB, free: 168 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001428/0.9307, allocations: 63.84 kB / 0.7548 GB, free: 167.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002388/0.9331, allocations: 1.897 MB / 0.7566 GB, free: 166.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7.41e-07/0.9331, allocations: 0 / 0.7566 GB, free: 166.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004173/0.9373, allocations: 1.029 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.008098/0.9454, allocations: 7.396 MB / 0.7649 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007521/0.953, allocations: 5.951 MB / 0.7707 GB, free: 151.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/0.953, allocations: 4 kB / 0.7707 GB, free: 151.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003542/0.9566, allocations: 2.411 MB / 0.773 GB, free: 149.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00256/0.9592, allocations: 482 kB / 0.7735 GB, free: 148.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05583/1.015, allocations: 44.99 MB / 0.8174 GB, free: 98.89 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004502/1.02, allocations: 3.626 MB / 0.821 GB, free: 95.23 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004121/1.024, allocations: 2.024 MB / 0.823 GB, free: 93.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002602/1.026, allocations: 2.046 MB / 0.825 GB, free: 91.16 MB / 0.5762 GB Notification: Performance of SimCode: time 9.22e-07/1.026, allocations: 0 / 0.825 GB, free: 91.16 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09631/1.123, allocations: 65.66 MB / 0.8891 GB, free: 25.85 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.23/20.35, allocations: 15.45 kB / 0.8891 GB, free: 25.84 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