Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 95.16 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 183.3 kB / 17.87 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 223.2 MB / 241.8 MB, free: 14.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.273/0.273, allocations: 44.22 MB / 337.1 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003236/0.0003237, allocations: 11.98 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1262, allocations: 61.9 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.03369/0.1599, allocations: 35.98 MB / 0.4956 GB, free: 9.574 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02052/0.1805, allocations: 8.983 MB / 0.5044 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007818/0.1884, allocations: 171.6 kB / 0.5046 GB, free: 404 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2751/0.4635, allocations: 1.826 MB / 0.5063 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02149/0.485, allocations: 5.339 MB / 0.5115 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003205/0.4882, allocations: 499.2 kB / 0.512 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005969/0.4942, allocations: 2.285 MB / 0.5143 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00841/0.5027, allocations: 4.259 MB / 0.5184 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002897/0.5056, allocations: 1.027 MB / 0.5194 GB, free: 9.965 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003039/0.5087, allocations: 1.372 MB / 0.5208 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001279/0.51, allocations: 157.8 kB / 0.5209 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003625/0.5136, allocations: 0.9009 MB / 0.5218 GB, free: 9.469 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003139/0.5168, allocations: 1.661 MB / 0.5234 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002843/0.5196, allocations: 0.9156 MB / 0.5243 GB, free: 9.129 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008188/0.5279, allocations: 6.109 MB / 0.5303 GB, free: 5.844 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.5279, allocations: 0 / 0.5303 GB, free: 5.844 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.5279, allocations: 0 / 0.5303 GB, free: 5.844 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003824/0.5283, allocations: 0 / 0.5303 GB, free: 5.844 MB / 382.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.0124/0.5407, allocations: 4.478 MB / 0.5346 GB, free: 3.152 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.5408, allocations: 9.594 kB / 0.5347 GB, free: 3.152 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00282/0.5436, allocations: 0.8585 MB / 0.5355 GB, free: 2.898 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01235/0.556, allocations: 3.84 MB / 0.5392 GB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007231/0.5632, allocations: 2.353 MB / 0.5415 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003355/0.5636, allocations: 264.7 kB / 0.5418 GB, free: 416 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00229/0.5659, allocations: 346.8 kB / 0.5421 GB, free: 412 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02609/0.592, allocations: 12.42 MB / 0.5542 GB, free: 7.453 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001351/0.5922, allocations: 29.12 kB / 0.5543 GB, free: 7.438 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006109/0.5928, allocations: 163.8 kB / 0.5544 GB, free: 7.395 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004274/0.5971, allocations: 2.693 MB / 0.5571 GB, free: 5.168 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02356/0.6206, allocations: 11.37 MB / 0.5682 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06679/0.6875, allocations: 39.62 MB / 0.6069 GB, free: 5.555 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01047/0.698, allocations: 4.943 MB / 0.6117 GB, free: 400 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01228/0.7103, allocations: 6.791 MB / 0.6183 GB, free: 9.281 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.27e-05/0.7104, allocations: 52.56 kB / 0.6184 GB, free: 9.223 MB / 462.1 MB Notification: Performance of pre-optimization done (n=226): time 5.3e-06/0.7104, allocations: 0 / 0.6184 GB, free: 9.223 MB / 462.1 MB Notification: Performance of matching and sorting (n=235): time 0.03806/0.7485, allocations: 16.69 MB / 0.6347 GB, free: 8.312 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.586e-05/0.7486, allocations: 69.41 kB / 0.6347 GB, free: 8.234 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005019/0.7536, allocations: 3.234 MB / 0.6379 GB, free: 4.988 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004994/0.7541, allocations: 57.7 kB / 0.6379 GB, free: 4.926 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002503/0.7566, allocations: 3.228 MB / 0.6411 GB, free: 1.715 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001344/0.758, allocations: 0.8837 MB / 0.642 GB, free: 0.8359 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002712/0.7583, allocations: 118.5 kB / 0.6421 GB, free: 0.7227 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003887/0.7587, allocations: 0.5622 MB / 0.6426 GB, free: 156 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003655/0.7623, allocations: 2.342 MB / 0.6449 GB, free: 13.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006176/0.7685, allocations: 5.636 MB / 0.6504 GB, free: 6.559 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00553/0.7741, allocations: 3.63 MB / 0.654 GB, free: 2.934 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.218e-05/0.7742, allocations: 32 kB / 0.654 GB, free: 2.902 MB / 494.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01555/0.7897, allocations: 8.747 MB / 0.6625 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.126e-05/0.7898, allocations: 56 kB / 0.6626 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001406/0.79, allocations: 116 kB / 0.6627 GB, free: 9.969 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00329/0.7933, allocations: 1.149 MB / 0.6638 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004794/0.7981, allocations: 1.341 MB / 0.6651 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006424/0.8045, allocations: 4.665 MB / 0.6697 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005858/0.8104, allocations: 319.7 kB / 0.67 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001184/0.8116, allocations: 350.6 kB / 0.6703 GB, free: 1.992 MB / 0.4981 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.005155/0.8168, allocations: 2.374 MB / 0.6726 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006109/0.8174, allocations: 296.1 kB / 0.6729 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007121/0.8245, allocations: 4.381 MB / 0.6772 GB, free: 10.92 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.444e-05/0.8246, allocations: 44 kB / 0.6772 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.8246, allocations: 4 kB / 0.6772 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.01e-05/0.8247, allocations: 11.95 kB / 0.6773 GB, free: 10.86 MB / 0.5137 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01904/0.8437, allocations: 10.52 MB / 0.6875 GB, free: 212 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-05/0.8438, allocations: 7.953 kB / 0.6875 GB, free: 204 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001585/0.8454, allocations: 379.4 kB / 0.6879 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001966/0.8473, allocations: 0.6734 MB / 0.6886 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001993/0.8475, allocations: 55.19 kB / 0.6886 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002816/0.8504, allocations: 2.452 MB / 0.691 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.8504, allocations: 8 kB / 0.691 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01046/0.8609, allocations: 7.179 MB / 0.698 GB, free: 5.055 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001213/0.8621, allocations: 353.1 kB / 0.6984 GB, free: 4.688 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003889/0.8625, allocations: 43.95 kB / 0.6984 GB, free: 4.645 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/0.8638, allocations: 134.8 kB / 0.6985 GB, free: 4.516 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002977/0.8641, allocations: 137.7 kB / 0.6987 GB, free: 4.379 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001599/0.8642, allocations: 63.98 kB / 0.6987 GB, free: 4.316 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003521/0.8678, allocations: 1.974 MB / 0.7007 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8678, allocations: 0 / 0.7007 GB, free: 2.344 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006437/0.8742, allocations: 1.069 MB / 0.7017 GB, free: 1.277 MB / 0.5294 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.3402/1.214, allocations: 9.152 MB / 0.7106 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01401/1.229, allocations: 5.727 MB / 0.7162 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.349e-05/1.229, allocations: 0 / 0.7162 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00579/1.234, allocations: 2.383 MB / 0.7186 GB, free: 177.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003431/1.238, allocations: 424.5 kB / 0.719 GB, free: 177 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08087/1.319, allocations: 113.4 MB / 0.8297 GB, free: 75.05 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004842/1.324, allocations: 3.773 MB / 0.8333 GB, free: 72.16 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004898/1.329, allocations: 2.019 MB / 0.8353 GB, free: 70.47 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003532/1.332, allocations: 2.085 MB / 0.8374 GB, free: 68.39 MB / 0.5294 GB Notification: Performance of SimCode: time 3.516e-06/1.332, allocations: 0 / 0.8374 GB, free: 68.39 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3785/1.711, allocations: 75.27 MB / 0.9109 GB, free: 165 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001722/1.711, allocations: 222.1 kB / 0.9111 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.663/5.374, allocations: 0 / 0.9111 GB, free: 164.7 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat