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.001162/0.001161, allocations: 97.66 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001528/0.001528, allocations: 193 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2118/0.2118, allocations: 45.91 MB / 344.1 MB, free: 12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003309/0.0003311, allocations: 8 kB / 418.2 MB, free: 20.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1336, allocations: 63.47 MB / 481.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.3215/0.4553, allocations: 38 MB / 0.5075 GB, free: 10 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0215/0.4768, allocations: 8.654 MB / 0.5159 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009746/0.4866, allocations: 174.8 kB / 0.5161 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007426/0.4941, allocations: 1.916 MB / 0.518 GB, free: 9.426 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01836/0.5125, allocations: 5.582 MB / 0.5234 GB, free: 8.277 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003175/0.5157, allocations: 0.4942 MB / 0.5239 GB, free: 8.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008604/0.5243, allocations: 4.68 MB / 0.5285 GB, free: 6.727 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007124/0.5315, allocations: 4.262 MB / 0.5326 GB, free: 5.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002876/0.5344, allocations: 1.235 MB / 0.5338 GB, free: 4.957 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003061/0.5375, allocations: 1.946 MB / 0.5357 GB, free: 4.289 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006216/0.5381, allocations: 159.7 kB / 0.5359 GB, free: 4.289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002394/0.5405, allocations: 0.907 MB / 0.5368 GB, free: 4.059 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002031/0.5426, allocations: 1.786 MB / 0.5385 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001237/0.5438, allocations: 0.9191 MB / 0.5394 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007536/0.5514, allocations: 6.141 MB / 0.5454 GB, free: 0 / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.5514, allocations: 128 / 0.5454 GB, free: 0 / 382.1 MB Notification: Performance of FrontEnd: time 3.557e-06/0.5514, allocations: 8.031 kB / 0.5454 GB, free: 15.99 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002769/0.5517, allocations: 0 / 0.5454 GB, free: 15.99 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: 1840 * Number of variables: 1840 Notification: Performance of Generate backend data structure: time 0.0126/0.5643, allocations: 4.522 MB / 0.5498 GB, free: 12.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.5644, allocations: 15.97 kB / 0.5498 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001937/0.5663, allocations: 0.8604 MB / 0.5507 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01054/0.5769, allocations: 3.282 MB / 0.5539 GB, free: 8.562 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007964/0.5849, allocations: 2.451 MB / 0.5563 GB, free: 6.605 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002682/0.5852, allocations: 266.6 kB / 0.5565 GB, free: 6.461 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001337/0.5865, allocations: 345.8 kB / 0.5569 GB, free: 6.242 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02261/0.6092, allocations: 12.34 MB / 0.5689 GB, free: 10.73 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001095/0.6093, allocations: 27.81 kB / 0.5689 GB, free: 10.7 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005169/0.6098, allocations: 166.8 kB / 0.5691 GB, free: 10.59 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004068/0.6139, allocations: 2.689 MB / 0.5717 GB, free: 7.902 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02518/0.6391, allocations: 11.28 MB / 0.5827 GB, free: 12.62 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06321/0.7024, allocations: 39.52 MB / 0.6213 GB, free: 4.496 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009795/0.7122, allocations: 4.964 MB / 0.6262 GB, free: 15.29 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003233/0.7155, allocations: 2.362 MB / 0.6285 GB, free: 12.92 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009344/0.7249, allocations: 6.824 MB / 0.6352 GB, free: 5.758 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/0.7249, allocations: 52.56 kB / 0.6352 GB, free: 5.695 MB / 478.1 MB Notification: Performance of pre-optimization done (n=226): time 4.338e-06/0.7249, allocations: 0 / 0.6352 GB, free: 5.695 MB / 478.1 MB Notification: Performance of matching and sorting (n=235): time 0.03573/0.7607, allocations: 16.2 MB / 0.651 GB, free: 5.363 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.842e-05/0.7608, allocations: 69.41 kB / 0.6511 GB, free: 5.281 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004829/0.7656, allocations: 3.125 MB / 0.6541 GB, free: 2.145 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004643/0.7661, allocations: 53.7 kB / 0.6542 GB, free: 2.086 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002709/0.7688, allocations: 3.232 MB / 0.6573 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00173/0.7706, allocations: 0.8843 MB / 0.6582 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003116/0.7709, allocations: 118.7 kB / 0.6583 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0005246/0.7714, allocations: 0.5583 MB / 0.6589 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004434/0.7759, allocations: 2.346 MB / 0.6612 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006823/0.7827, allocations: 5.669 MB / 0.6667 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006245/0.789, allocations: 3.626 MB / 0.6702 GB, free: 32 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001376/0.7892, allocations: 32 kB / 0.6703 GB, free: 0 / 0.4981 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01814/0.8073, allocations: 8.796 MB / 0.6789 GB, free: 7.184 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.396e-05/0.8075, allocations: 59.12 kB / 0.6789 GB, free: 7.129 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000131/0.8076, allocations: 116 kB / 0.679 GB, free: 7.016 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0032/0.8108, allocations: 1.156 MB / 0.6802 GB, free: 5.852 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005204/0.816, allocations: 1.345 MB / 0.6815 GB, free: 4.504 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009424/0.8255, allocations: 6.5 MB / 0.6878 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004792/0.8303, allocations: 330.3 kB / 0.6881 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001043/0.8314, allocations: 340 kB / 0.6885 GB, free: 13.09 MB / 0.5294 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.arrowLine.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 5} Notification: Performance of prepare postOptimizeDAE: time 0.004858/0.8363, allocations: 2.375 MB / 0.6908 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005543/0.8368, allocations: 300.1 kB / 0.6911 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007477/0.8443, allocations: 4.388 MB / 0.6953 GB, free: 5.996 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.114e-05/0.8444, allocations: 51.92 kB / 0.6954 GB, free: 5.945 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.8444, allocations: 1.422 kB / 0.6954 GB, free: 5.945 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.812e-05/0.8444, allocations: 7.969 kB / 0.6954 GB, free: 5.938 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01733/0.8618, allocations: 10.38 MB / 0.7055 GB, free: 11.47 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-05/0.8618, allocations: 8 kB / 0.7055 GB, free: 11.46 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001548/0.8634, allocations: 379.4 kB / 0.7059 GB, free: 11.09 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001859/0.8653, allocations: 0.6832 MB / 0.7066 GB, free: 10.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002024/0.8655, allocations: 40 kB / 0.7066 GB, free: 10.36 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002885/0.8684, allocations: 2.428 MB / 0.709 GB, free: 7.793 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/0.8684, allocations: 11.94 kB / 0.709 GB, free: 7.781 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009854/0.8783, allocations: 6.724 MB / 0.7156 GB, free: 0.9609 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001126/0.8794, allocations: 345.1 kB / 0.7159 GB, free: 0.6016 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003771/0.8798, allocations: 40 kB / 0.7159 GB, free: 0.5625 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/0.881, allocations: 143.8 kB / 0.7161 GB, free: 436 kB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002919/0.8813, allocations: 133.7 kB / 0.7162 GB, free: 304 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001584/0.8815, allocations: 67.98 kB / 0.7163 GB, free: 236 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.3116/1.193, allocations: 1.881 MB / 0.7181 GB, free: 189.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.41e-07/1.193, allocations: 0 / 0.7181 GB, free: 189.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007129/1.2, allocations: 1.056 MB / 0.7191 GB, free: 189.9 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * 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.01254/1.213, allocations: 7.381 MB / 0.7263 GB, free: 188.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01156/1.224, allocations: 5.883 MB / 0.7321 GB, free: 186.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/1.224, allocations: 1.188 kB / 0.7321 GB, free: 186.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004304/1.229, allocations: 2.391 MB / 0.7344 GB, free: 185.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002653/1.231, allocations: 461.2 kB / 0.7349 GB, free: 185.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05141/1.283, allocations: 33.85 MB / 0.7679 GB, free: 162.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004877/1.288, allocations: 3.669 MB / 0.7715 GB, free: 159.2 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004401/1.292, allocations: 2.016 MB / 0.7735 GB, free: 157.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003062/1.295, allocations: 2.085 MB / 0.7755 GB, free: 155.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.402e-06/1.295, allocations: 0 / 0.7755 GB, free: 155.6 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1249/1.42, allocations: 75.39 MB / 0.8491 GB, free: 80.59 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002192/1.42, allocations: 224.9 kB / 0.8493 GB, free: 80.35 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.861/5.281, allocations: 0 / 0.8493 GB, free: 80.35 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat