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.001149/0.001149, allocations: 109.6 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001195/0.001195, allocations: 209.8 kB / 18.27 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2278/0.2278, allocations: 46.1 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 72.05 kB / 417.1 MB, free: 19.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1289, allocations: 62.45 MB / 479.6 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.2882/0.4172, allocations: 38.14 MB / 0.5056 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01993/0.4372, allocations: 8.326 MB / 0.5137 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00825/0.4454, allocations: 161.1 kB / 0.5139 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004615/0.4501, allocations: 2.259 MB / 0.5161 GB, free: 9.676 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005507/0.4557, allocations: 1.768 MB / 0.5178 GB, free: 9.121 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002059/0.4577, allocations: 0.5378 MB / 0.5183 GB, free: 8.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007346/0.4651, allocations: 4.169 MB / 0.5224 GB, free: 7.672 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005254/0.4704, allocations: 3.739 MB / 0.5261 GB, free: 6.191 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003354/0.4738, allocations: 1.578 MB / 0.5276 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003448/0.4772, allocations: 2.35 MB / 0.5299 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007468/0.478, allocations: 346.8 kB / 0.5302 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002529/0.4805, allocations: 1.215 MB / 0.5314 GB, free: 4.223 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001672/0.4822, allocations: 2.02 MB / 0.5334 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002001/0.4842, allocations: 2.405 MB / 0.5357 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01096/0.4952, allocations: 7.544 MB / 0.5431 GB, free: 12.22 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.959e-06/0.4953, allocations: 0 / 0.5431 GB, free: 12.22 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4953, allocations: 0 / 0.5431 GB, free: 12.22 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003548/0.4956, allocations: 0 / 0.5431 GB, free: 12.22 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.01567/0.5113, allocations: 5.353 MB / 0.5483 GB, free: 7.285 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/0.5114, allocations: 12.03 kB / 0.5483 GB, free: 7.273 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001592/0.513, allocations: 0.8498 MB / 0.5492 GB, free: 6.465 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01069/0.5237, allocations: 3.178 MB / 0.5523 GB, free: 3.277 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005569/0.5293, allocations: 2.467 MB / 0.5547 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002968/0.5296, allocations: 261.2 kB / 0.5549 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001617/0.5313, allocations: 346.8 kB / 0.5553 GB, free: 284 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02094/0.5522, allocations: 12.18 MB / 0.5672 GB, free: 3.77 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001063/0.5524, allocations: 31.7 kB / 0.5672 GB, free: 3.738 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004654/0.5529, allocations: 158.3 kB / 0.5673 GB, free: 3.629 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003768/0.5566, allocations: 2.632 MB / 0.5699 GB, free: 1.004 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02004/0.5767, allocations: 11.21 MB / 0.5809 GB, free: 5.781 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05717/0.6339, allocations: 39.12 MB / 0.6191 GB, free: 14.03 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01037/0.6443, allocations: 4.976 MB / 0.6239 GB, free: 8.816 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003423/0.6478, allocations: 2.362 MB / 0.6262 GB, free: 6.445 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01141/0.6592, allocations: 6.823 MB / 0.6329 GB, free: 15.27 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.291e-05/0.6593, allocations: 52.56 kB / 0.6329 GB, free: 15.21 MB / 494.1 MB Notification: Performance of pre-optimization done (n=226): time 6.963e-06/0.6593, allocations: 0 / 0.6329 GB, free: 15.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=235): time 0.03864/0.6979, allocations: 16.17 MB / 0.6487 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.155e-05/0.6981, allocations: 81.34 kB / 0.6488 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005897/0.704, allocations: 3.125 MB / 0.6519 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002855/0.7043, allocations: 55.97 kB / 0.6519 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002255/0.7065, allocations: 3.183 MB / 0.655 GB, free: 8.418 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001068/0.7076, allocations: 0.8854 MB / 0.6559 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002287/0.7099, allocations: 1.202 MB / 0.6571 GB, free: 6.328 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001287/0.7101, allocations: 301.1 kB / 0.6574 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003645/0.7137, allocations: 2.37 MB / 0.6597 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006708/0.7204, allocations: 5.689 MB / 0.6652 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01152/0.732, allocations: 8.748 MB / 0.6738 GB, free: 1.965 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001713/0.7322, allocations: 36 kB / 0.6738 GB, free: 1.93 MB / 0.5137 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01803/0.7503, allocations: 8.828 MB / 0.6824 GB, free: 9.09 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001443/0.7504, allocations: 52 kB / 0.6825 GB, free: 9.039 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001957/0.7506, allocations: 116 kB / 0.6826 GB, free: 8.926 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003554/0.7542, allocations: 1.133 MB / 0.6837 GB, free: 7.785 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004695/0.7589, allocations: 1.345 MB / 0.685 GB, free: 6.438 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009184/0.7681, allocations: 6.946 MB / 0.6918 GB, free: 15.22 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005548/0.7737, allocations: 327.7 kB / 0.6921 GB, free: 14.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001433/0.7752, allocations: 350.7 kB / 0.6924 GB, free: 14.56 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.005355/0.7805, allocations: 2.337 MB / 0.6947 GB, free: 12.21 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007548/0.7813, allocations: 296.3 kB / 0.695 GB, free: 11.91 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007965/0.7893, allocations: 4.388 MB / 0.6993 GB, free: 7.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.25e-05/0.7894, allocations: 51.98 kB / 0.6993 GB, free: 7.449 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-05/0.7894, allocations: 4 kB / 0.6993 GB, free: 7.445 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-05/0.7894, allocations: 8.062 kB / 0.6993 GB, free: 7.438 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2812/1.071, allocations: 10.31 MB / 0.7094 GB, free: 190.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.789e-05/1.071, allocations: 4.625 kB / 0.7094 GB, free: 190.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001701/1.072, allocations: 379.5 kB / 0.7098 GB, free: 190.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002089/1.074, allocations: 0.6841 MB / 0.7105 GB, free: 190.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002483/1.075, allocations: 48.98 kB / 0.7105 GB, free: 190.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002792/1.078, allocations: 2.567 MB / 0.713 GB, free: 189.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/1.078, allocations: 12.97 kB / 0.713 GB, free: 189.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01023/1.088, allocations: 6.723 MB / 0.7196 GB, free: 187.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009395/1.089, allocations: 338 kB / 0.7199 GB, free: 187.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004864/1.089, allocations: 45.97 kB / 0.7199 GB, free: 187.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/1.091, allocations: 135.5 kB / 0.7201 GB, free: 187.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003963/1.091, allocations: 131.8 kB / 0.7202 GB, free: 187.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001725/1.091, allocations: 68.19 kB / 0.7203 GB, free: 187.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003218/1.094, allocations: 1.9 MB / 0.7221 GB, free: 186.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.7e-07/1.094, allocations: 0 / 0.7221 GB, free: 186.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005671/1.1, allocations: 1.036 MB / 0.7231 GB, free: 186.4 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.009624/1.11, allocations: 7.387 MB / 0.7303 GB, free: 183.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01402/1.124, allocations: 9.388 MB / 0.7395 GB, free: 181.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/1.124, allocations: 1.531 kB / 0.7395 GB, free: 181.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003757/1.128, allocations: 2.401 MB / 0.7419 GB, free: 179.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002619/1.13, allocations: 481.4 kB / 0.7423 GB, free: 179.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05996/1.19, allocations: 51.03 MB / 0.7922 GB, free: 124.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003325/1.194, allocations: 3.633 MB / 0.7957 GB, free: 121.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003851/1.198, allocations: 2.02 MB / 0.7977 GB, free: 119 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002036/1.2, allocations: 2.046 MB / 0.7997 GB, free: 117 MB / 0.545 GB Notification: Performance of SimCode: time 6.51e-07/1.2, allocations: 0 / 0.7997 GB, free: 117 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08416/1.284, allocations: 67.75 MB / 0.8658 GB, free: 49.55 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000139/1.284, allocations: 235.3 kB / 0.8661 GB, free: 49.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.639/4.923, allocations: 0 / 0.8661 GB, free: 49.3 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