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.001219/0.001219, allocations: 102.1 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00124/0.00124, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2213/0.2213, allocations: 46.1 MB / 343.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 83.56 kB / 416.9 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1246, allocations: 62.44 MB / 479.4 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.2956/0.4202, allocations: 38.14 MB / 0.5054 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02152/0.4418, allocations: 8.432 MB / 0.5136 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007766/0.4496, allocations: 161.2 kB / 0.5138 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005049/0.4547, allocations: 2.321 MB / 0.5161 GB, free: 9.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005121/0.4599, allocations: 1.779 MB / 0.5178 GB, free: 9.012 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00159/0.4615, allocations: 0.5323 MB / 0.5183 GB, free: 8.816 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007734/0.4692, allocations: 5.92 MB / 0.5241 GB, free: 7.379 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005991/0.4752, allocations: 3.504 MB / 0.5275 GB, free: 5.922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003033/0.4783, allocations: 1.369 MB / 0.5289 GB, free: 5.246 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003668/0.482, allocations: 2.249 MB / 0.531 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001162/0.4832, allocations: 249.6 kB / 0.5313 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003187/0.4864, allocations: 1.169 MB / 0.5324 GB, free: 3.637 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002674/0.4891, allocations: 1.925 MB / 0.5343 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00406/0.4931, allocations: 2.294 MB / 0.5365 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00867/0.5018, allocations: 7.409 MB / 0.5438 GB, free: 11.64 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.5019, allocations: 0 / 0.5438 GB, free: 11.64 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5019, allocations: 0 / 0.5438 GB, free: 11.64 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002514/0.5021, allocations: 0 / 0.5438 GB, free: 11.64 MB / 398.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.01368/0.5158, allocations: 5.35 MB / 0.549 GB, free: 6.348 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/0.5159, allocations: 8.875 kB / 0.549 GB, free: 6.34 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001358/0.5173, allocations: 0.8551 MB / 0.5499 GB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01079/0.5281, allocations: 3.185 MB / 0.553 GB, free: 2.332 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00502/0.5331, allocations: 2.463 MB / 0.5554 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001685/0.5333, allocations: 257.7 kB / 0.5556 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007904/0.5341, allocations: 352 kB / 0.5559 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02264/0.5567, allocations: 12.18 MB / 0.5678 GB, free: 2.824 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002552/0.5571, allocations: 31.66 kB / 0.5679 GB, free: 2.793 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001628/0.5587, allocations: 159.6 kB / 0.568 GB, free: 2.684 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004397/0.5631, allocations: 2.635 MB / 0.5706 GB, free: 56 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02172/0.5849, allocations: 11.21 MB / 0.5815 GB, free: 4.836 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0567/0.6416, allocations: 39.12 MB / 0.6197 GB, free: 13.09 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01062/0.6522, allocations: 4.967 MB / 0.6246 GB, free: 7.879 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003769/0.6561, allocations: 2.37 MB / 0.6269 GB, free: 5.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01223/0.6683, allocations: 6.816 MB / 0.6336 GB, free: 14.34 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.135e-05/0.6684, allocations: 52.56 kB / 0.6336 GB, free: 14.28 MB / 494.1 MB Notification: Performance of pre-optimization done (n=226): time 5.2e-06/0.6684, allocations: 0 / 0.6336 GB, free: 14.28 MB / 494.1 MB Notification: Performance of matching and sorting (n=235): time 0.04007/0.7085, allocations: 16.18 MB / 0.6494 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.678e-05/0.7086, allocations: 73.34 kB / 0.6495 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005269/0.7139, allocations: 3.125 MB / 0.6525 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003952/0.7143, allocations: 57.7 kB / 0.6526 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00242/0.7168, allocations: 3.183 MB / 0.6557 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001301/0.7181, allocations: 0.8839 MB / 0.6566 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002731/0.7208, allocations: 1.209 MB / 0.6577 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.7209, allocations: 301.1 kB / 0.658 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004053/0.725, allocations: 2.366 MB / 0.6603 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00706/0.7321, allocations: 5.692 MB / 0.6659 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01195/0.7441, allocations: 8.744 MB / 0.6744 GB, free: 1.027 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001325/0.7442, allocations: 32 kB / 0.6745 GB, free: 0.9961 MB / 0.5137 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01921/0.7635, allocations: 8.828 MB / 0.6831 GB, free: 8.148 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001532/0.7636, allocations: 56 kB / 0.6831 GB, free: 8.094 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002047/0.7639, allocations: 116 kB / 0.6833 GB, free: 7.98 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003554/0.7674, allocations: 1.134 MB / 0.6844 GB, free: 6.84 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004581/0.772, allocations: 1.345 MB / 0.6857 GB, free: 5.492 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009743/0.7818, allocations: 6.486 MB / 0.692 GB, free: 14.74 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004888/0.7867, allocations: 321.8 kB / 0.6923 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001265/0.788, allocations: 351.9 kB / 0.6927 GB, free: 14.09 MB / 0.545 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.005722/0.7938, allocations: 2.34 MB / 0.6949 GB, free: 11.73 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001077/0.7949, allocations: 292.2 kB / 0.6952 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008973/0.8039, allocations: 4.4 MB / 0.6995 GB, free: 7.023 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.731e-05/0.804, allocations: 47.98 kB / 0.6996 GB, free: 6.977 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-05/0.804, allocations: 0 / 0.6996 GB, free: 6.977 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-05/0.804, allocations: 15.91 kB / 0.6996 GB, free: 6.961 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2825/1.087, allocations: 10.31 MB / 0.7096 GB, free: 191 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.495e-05/1.087, allocations: 5.469 kB / 0.7097 GB, free: 191 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001647/1.088, allocations: 379.3 kB / 0.71 GB, free: 191 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002262/1.09, allocations: 0.6768 MB / 0.7107 GB, free: 190.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001912/1.091, allocations: 50.3 kB / 0.7107 GB, free: 190.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003167/1.094, allocations: 2.423 MB / 0.7131 GB, free: 189.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.038e-05/1.094, allocations: 9.219 kB / 0.7131 GB, free: 189.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01138/1.105, allocations: 6.734 MB / 0.7197 GB, free: 187.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001159/1.106, allocations: 333.4 kB / 0.72 GB, free: 187.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003848/1.107, allocations: 45.75 kB / 0.72 GB, free: 187.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/1.108, allocations: 135 kB / 0.7202 GB, free: 187.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004193/1.109, allocations: 132.4 kB / 0.7203 GB, free: 187.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001763/1.109, allocations: 68.23 kB / 0.7204 GB, free: 187.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003364/1.112, allocations: 1.895 MB / 0.7222 GB, free: 186.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.61e-07/1.112, allocations: 0 / 0.7222 GB, free: 186.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004834/1.117, allocations: 1.033 MB / 0.7232 GB, free: 186.5 MB / 0.545 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.008704/1.126, allocations: 7.396 MB / 0.7304 GB, free: 183.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007583/1.133, allocations: 5.904 MB / 0.7362 GB, free: 181.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/1.133, allocations: 3.938 kB / 0.7362 GB, free: 181.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003236/1.137, allocations: 2.407 MB / 0.7386 GB, free: 180.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002408/1.139, allocations: 452.4 kB / 0.739 GB, free: 180.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05772/1.197, allocations: 51.02 MB / 0.7888 GB, free: 127.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005023/1.202, allocations: 3.634 MB / 0.7924 GB, free: 123.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004315/1.206, allocations: 2.016 MB / 0.7943 GB, free: 121.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002821/1.209, allocations: 2.053 MB / 0.7963 GB, free: 119.8 MB / 0.545 GB Notification: Performance of SimCode: time 9.22e-07/1.209, allocations: 0 / 0.7963 GB, free: 119.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09229/1.301, allocations: 66.34 MB / 0.8611 GB, free: 53.77 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000169/1.302, allocations: 238.6 kB / 0.8613 GB, free: 53.52 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.702/5.003, allocations: 3.938 kB / 0.8614 GB, free: 53.52 MB / 0.545 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