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.00111/0.00111, allocations: 96.88 kB / 16.99 MB, free: 5.941 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.001195/0.001196, allocations: 181.5 kB / 17.87 MB, free: 5.609 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.38/1.38, allocations: 223.2 MB / 241.8 MB, free: 14.65 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.2247/0.2247, allocations: 44.22 MB / 337.1 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003406/0.0003406, allocations: 8 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1249, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit): time 0.02842/0.1533, allocations: 28.85 MB / 0.4887 GB, free: 0.7031 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01724/0.1706, allocations: 7.433 MB / 0.4959 GB, free: 9.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006343/0.177, allocations: 147.6 kB / 0.4961 GB, free: 9.105 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006086/0.1831, allocations: 1.47 MB / 0.4975 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01603/0.1992, allocations: 4.395 MB / 0.5018 GB, free: 3.223 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002435/0.2017, allocations: 407.3 kB / 0.5022 GB, free: 2.824 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004963/0.2067, allocations: 2.062 MB / 0.5042 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3122/0.5189, allocations: 3.312 MB / 0.5074 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002403/0.5213, allocations: 0.9052 MB / 0.5083 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003074/0.5244, allocations: 1.237 MB / 0.5095 GB, free: 11.74 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001067/0.5255, allocations: 138.1 kB / 0.5096 GB, free: 11.74 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003456/0.529, allocations: 0.8483 MB / 0.5105 GB, free: 11.74 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004712/0.5337, allocations: 1.483 MB / 0.5119 GB, free: 11.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002845/0.5366, allocations: 0.8153 MB / 0.5127 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01016/0.5468, allocations: 5.373 MB / 0.518 GB, free: 11.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.5468, allocations: 1.031 kB / 0.518 GB, free: 11.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.5468, allocations: 4 kB / 0.518 GB, free: 11.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003344/0.5472, allocations: 0 / 0.518 GB, free: 11.35 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.01428/0.5615, allocations: 4.041 MB / 0.5219 GB, free: 9.379 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.242e-05/0.5616, allocations: 9.625 kB / 0.5219 GB, free: 9.379 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003676/0.5652, allocations: 0.7689 MB / 0.5227 GB, free: 9.148 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0139/0.5792, allocations: 3.775 MB / 0.5264 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007566/0.5868, allocations: 2.148 MB / 0.5285 GB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003167/0.5871, allocations: 220.8 kB / 0.5287 GB, free: 6.746 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002109/0.5893, allocations: 294.2 kB / 0.529 GB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02283/0.6121, allocations: 11.16 MB / 0.5399 GB, free: 3.945 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001256/0.6123, allocations: 30.42 kB / 0.5399 GB, free: 3.938 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000519/0.6128, allocations: 136.9 kB / 0.54 GB, free: 3.938 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003779/0.6166, allocations: 2.569 MB / 0.5425 GB, free: 1.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02629/0.6429, allocations: 10.42 MB / 0.5527 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0742/0.7172, allocations: 35.59 MB / 0.5875 GB, free: 9.43 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00934/0.7266, allocations: 4.281 MB / 0.5916 GB, free: 4.934 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001464/0.7281, allocations: 1.312 MB / 0.5929 GB, free: 3.41 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.088e-05/0.7282, allocations: 56.56 kB / 0.593 GB, free: 3.348 MB / 430.1 MB Notification: Performance of pre-optimization done (n=235): time 7.504e-06/0.7282, allocations: 0 / 0.593 GB, free: 3.348 MB / 430.1 MB Notification: Performance of matching and sorting (n=256): time 0.0444/0.7726, allocations: 14.24 MB / 0.6069 GB, free: 4.977 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.75e-05/0.7727, allocations: 76.59 kB / 0.607 GB, free: 4.895 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004968/0.7777, allocations: 2.868 MB / 0.6098 GB, free: 2.016 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007558/0.7785, allocations: 61.7 kB / 0.6098 GB, free: 1.949 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002683/0.7812, allocations: 2.86 MB / 0.6126 GB, free: 15.09 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001641/0.7828, allocations: 0.9464 MB / 0.6135 GB, free: 14.16 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002857/0.7831, allocations: 112 kB / 0.6136 GB, free: 14.05 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004668/0.7836, allocations: 0.5498 MB / 0.6142 GB, free: 13.49 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00391/0.7875, allocations: 2.275 MB / 0.6164 GB, free: 11.21 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006296/0.7938, allocations: 5.343 MB / 0.6216 GB, free: 4.41 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006117/0.8, allocations: 3.505 MB / 0.625 GB, free: 1.004 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001001/0.8001, allocations: 32 kB / 0.6251 GB, free: 0.9727 MB / 462.1 MB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01866/0.8188, allocations: 8.348 MB / 0.6332 GB, free: 8.789 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001299/0.819, allocations: 55.95 kB / 0.6333 GB, free: 8.734 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001454/0.8191, allocations: 108 kB / 0.6334 GB, free: 8.629 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003828/0.8229, allocations: 1.063 MB / 0.6344 GB, free: 7.559 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005449/0.8284, allocations: 1.291 MB / 0.6357 GB, free: 6.266 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003014/0.8314, allocations: 2.479 MB / 0.6381 GB, free: 3.648 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004926/0.8364, allocations: 307.8 kB / 0.6384 GB, free: 3.348 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001077/0.8375, allocations: 328 kB / 0.6387 GB, free: 3.027 MB / 478.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.005933/0.8434, allocations: 2.211 MB / 0.6409 GB, free: 0.8047 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006461/0.8441, allocations: 285.8 kB / 0.6411 GB, free: 0.5234 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009437/0.8535, allocations: 4.947 MB / 0.646 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.077e-05/0.8536, allocations: 49.73 kB / 0.646 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.8537, allocations: 7.938 kB / 0.646 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.237e-05/0.8537, allocations: 7.969 kB / 0.646 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02226/0.8759, allocations: 11.31 MB / 0.6571 GB, free: 16 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.222e-05/0.876, allocations: 8.969 kB / 0.6571 GB, free: 8 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002131/0.8782, allocations: 403.4 kB / 0.6575 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003409/0.8816, allocations: 0.9073 MB / 0.6584 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005348/0.8821, allocations: 59.5 kB / 0.6584 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002558/0.8847, allocations: 2.307 MB / 0.6607 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.157e-06/0.8847, allocations: 11.94 kB / 0.6607 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01239/0.8971, allocations: 7.991 MB / 0.6685 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001013/0.8982, allocations: 329.4 kB / 0.6688 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004759/0.8987, allocations: 51.98 kB / 0.6688 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001336/0.9, allocations: 139.6 kB / 0.669 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003483/0.9004, allocations: 157.6 kB / 0.6691 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001846/0.9006, allocations: 75.97 kB / 0.6692 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003021/0.9036, allocations: 1.751 MB / 0.6709 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.2e-07/0.9036, allocations: 0 / 0.6709 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00645/0.9101, allocations: 1.003 MB / 0.6719 GB, free: 348 kB / 0.4981 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.01307/0.9232, allocations: 10.61 MB / 0.6822 GB, free: 5.441 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0101/0.9333, allocations: 6.002 MB / 0.6881 GB, free: 15.41 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/0.9333, allocations: 4 kB / 0.6881 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004269/0.9376, allocations: 2.545 MB / 0.6906 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002095/0.9397, allocations: 401.7 kB / 0.691 GB, free: 12.42 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3136/1.253, allocations: 105.7 MB / 0.7942 GB, free: 108.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003884/1.257, allocations: 3.517 MB / 0.7976 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004234/1.261, allocations: 2.047 MB / 0.7996 GB, free: 107 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002537/1.264, allocations: 1.933 MB / 0.8015 GB, free: 105.4 MB / 0.5294 GB Notification: Performance of SimCode: time 9.82e-07/1.264, allocations: 0 / 0.8015 GB, free: 105.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1001/1.364, allocations: 69.64 MB / 0.8695 GB, free: 39.74 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001516/1.364, allocations: 204 kB / 0.8697 GB, free: 39.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.373/4.738, allocations: 0 / 0.8697 GB, free: 39.5 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