Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.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.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",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.001065/0.001066, allocations: 99.45 kB / 17 MB, free: 6.477 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.0012/0.0012, allocations: 181.7 kB / 17.89 MB, free: 5.922 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.349/1.349, allocations: 223.2 MB / 241.9 MB, free: 344 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1907/0.1907, allocations: 44.22 MB / 337.2 MB, free: 2.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004675/0.0004676, allocations: 15.98 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1622, allocations: 61.9 MB / 471.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit): time 0.02764/0.1899, allocations: 30.43 MB / 0.4903 GB, free: 15.12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01755/0.2075, allocations: 7.17 MB / 0.4973 GB, free: 7.926 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006981/0.2145, allocations: 139.6 kB / 0.4974 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004747/0.2193, allocations: 1.512 MB / 0.4989 GB, free: 6.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0128/0.2321, allocations: 4.522 MB / 0.5033 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002041/0.2342, allocations: 415.3 kB / 0.5037 GB, free: 1.328 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2741/0.5083, allocations: 4.128 MB / 0.5078 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005863/0.5142, allocations: 3.34 MB / 0.511 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00275/0.517, allocations: 1.095 MB / 0.5121 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003539/0.5206, allocations: 1.751 MB / 0.5138 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008215/0.5214, allocations: 142.3 kB / 0.5139 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002606/0.524, allocations: 0.863 MB / 0.5148 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002211/0.5263, allocations: 1.593 MB / 0.5163 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001299/0.5276, allocations: 0.815 MB / 0.5171 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006915/0.5345, allocations: 5.384 MB / 0.5224 GB, free: 11.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.5346, allocations: 1.969 kB / 0.5224 GB, free: 11.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5346, allocations: 0 / 0.5224 GB, free: 11.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002745/0.5349, allocations: 4 kB / 0.5224 GB, free: 11.08 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: 1651 * Number of variables: 1651 Notification: Performance of Generate backend data structure: time 0.009387/0.5443, allocations: 3.98 MB / 0.5263 GB, free: 8.652 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.5443, allocations: 7.062 kB / 0.5263 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001555/0.5459, allocations: 0.7722 MB / 0.527 GB, free: 8.422 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009512/0.5554, allocations: 3.222 MB / 0.5302 GB, free: 6.898 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004685/0.5601, allocations: 2.347 MB / 0.5325 GB, free: 6.113 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001473/0.5603, allocations: 221.4 kB / 0.5327 GB, free: 6.105 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000816/0.5611, allocations: 287.7 kB / 0.533 GB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01682/0.5779, allocations: 11.12 MB / 0.5438 GB, free: 1.754 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001077/0.5781, allocations: 23.72 kB / 0.5438 GB, free: 1.742 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004377/0.5785, allocations: 135 kB / 0.544 GB, free: 1.707 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003537/0.5821, allocations: 2.566 MB / 0.5465 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02221/0.6043, allocations: 10.35 MB / 0.5566 GB, free: 8.359 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06215/0.6665, allocations: 35.51 MB / 0.5913 GB, free: 5.227 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00797/0.6745, allocations: 4.279 MB / 0.5954 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003007/0.6776, allocations: 2.117 MB / 0.5975 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0011/0.6787, allocations: 1.315 MB / 0.5988 GB, free: 13.09 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/0.6787, allocations: 56.52 kB / 0.5988 GB, free: 13.03 MB / 446.1 MB Notification: Performance of pre-optimization done (n=235): time 5.01e-06/0.6787, allocations: 0 / 0.5988 GB, free: 13.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=256): time 0.0381/0.7169, allocations: 13.7 MB / 0.6122 GB, free: 15.29 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.007e-05/0.717, allocations: 73.41 kB / 0.6123 GB, free: 15.21 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004951/0.722, allocations: 2.749 MB / 0.615 GB, free: 12.45 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000682/0.7227, allocations: 61.53 kB / 0.615 GB, free: 12.38 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002412/0.7251, allocations: 2.865 MB / 0.6178 GB, free: 9.527 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001492/0.7266, allocations: 0.938 MB / 0.6187 GB, free: 8.598 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002796/0.7269, allocations: 114.1 kB / 0.6189 GB, free: 8.488 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004244/0.7273, allocations: 0.5498 MB / 0.6194 GB, free: 7.93 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003608/0.731, allocations: 2.279 MB / 0.6216 GB, free: 5.645 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006335/0.7373, allocations: 5.367 MB / 0.6269 GB, free: 14.77 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006129/0.7435, allocations: 3.498 MB / 0.6303 GB, free: 11.29 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-05/0.7436, allocations: 32 kB / 0.6303 GB, free: 11.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01704/0.7606, allocations: 8.35 MB / 0.6385 GB, free: 2.887 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001041/0.7608, allocations: 56.14 kB / 0.6385 GB, free: 2.832 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001917/0.761, allocations: 112 kB / 0.6386 GB, free: 2.723 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003537/0.7645, allocations: 1.048 MB / 0.6396 GB, free: 1.664 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004877/0.7694, allocations: 1.294 MB / 0.6409 GB, free: 376 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003081/0.7725, allocations: 2.463 MB / 0.6433 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004599/0.7772, allocations: 307.7 kB / 0.6436 GB, free: 13.46 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001449/0.7786, allocations: 326.9 kB / 0.6439 GB, free: 13.15 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 489 * Number of states: 0 () * Number of discrete variables: 26 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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 (701): * Single equations (assignments): 692 * 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 prepare postOptimizeDAE: time 0.006228/0.7849, allocations: 2.209 MB / 0.6461 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008056/0.7857, allocations: 284.3 kB / 0.6463 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01048/0.7962, allocations: 4.943 MB / 0.6512 GB, free: 5.633 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.466e-05/0.7963, allocations: 48.12 kB / 0.6512 GB, free: 5.586 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.296e-05/0.7963, allocations: 4 kB / 0.6512 GB, free: 5.582 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-05/0.7964, allocations: 17.58 kB / 0.6512 GB, free: 5.566 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02256/0.8189, allocations: 11.31 MB / 0.6623 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.801e-05/0.819, allocations: 8 kB / 0.6623 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00172/0.8207, allocations: 407.4 kB / 0.6627 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003096/0.8238, allocations: 0.9035 MB / 0.6636 GB, free: 8.828 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003064/0.8241, allocations: 59.97 kB / 0.6636 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002585/0.8267, allocations: 2.276 MB / 0.6658 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.656e-06/0.8268, allocations: 11.94 kB / 0.6659 GB, free: 6.348 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01253/0.8393, allocations: 7.347 MB / 0.673 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/0.8404, allocations: 321.4 kB / 0.6733 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008145/0.8412, allocations: 59.12 kB / 0.6734 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/0.8427, allocations: 135.8 kB / 0.6735 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002975/0.843, allocations: 153.6 kB / 0.6737 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001714/0.8432, allocations: 75.97 kB / 0.6737 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002857/0.846, allocations: 1.669 MB / 0.6754 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.81e-07/0.846, allocations: 0 / 0.6754 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00578/0.8518, allocations: 0.9801 MB / 0.6763 GB, free: 11.43 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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,freeMotionScalarInit.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_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 (206): * Single equations (assignments): 197 * 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.01289/0.8647, allocations: 8.011 MB / 0.6842 GB, free: 3.25 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01061/0.8754, allocations: 6.01 MB / 0.69 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/0.8754, allocations: 4 kB / 0.69 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004379/0.8798, allocations: 2.543 MB / 0.6925 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00261/0.8825, allocations: 436.9 kB / 0.6929 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2913/1.174, allocations: 31.91 MB / 0.7241 GB, free: 180.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004116/1.178, allocations: 3.423 MB / 0.7274 GB, free: 179.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004194/1.182, allocations: 2.043 MB / 0.7294 GB, free: 179.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002106/1.184, allocations: 1.93 MB / 0.7313 GB, free: 177.6 MB / 0.5294 GB Notification: Performance of SimCode: time 6.51e-07/1.184, allocations: 0 / 0.7313 GB, free: 177.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1316/1.316, allocations: 68.95 MB / 0.7986 GB, free: 113.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001633/1.316, allocations: 212 kB / 0.7988 GB, free: 113.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.365/4.681, allocations: 0 / 0.7988 GB, free: 113.1 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat does not exist to compare? outputFormat=mat