Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001517/0.001517, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.092/2.092, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001077/0.001077, allocations: 96.89 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.963e-05/2.962e-05, allocations: 4 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.3495, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1881/0.5376, allocations: 107 MB / 469.5 MB, free: 11.12 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004163/0.5381, allocations: 91.94 kB / 469.5 MB, free: 11.04 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.465/2.003, allocations: 229.8 MB / 0.6829 GB, free: 36.71 MB / 411.1 MB Notification: Performance of FrontEnd: time 2.645e-06/2.003, allocations: 3.719 kB / 0.6829 GB, free: 36.71 MB / 411.1 MB Notification: Performance of Transformations before backend: time 0.000843/2.004, allocations: 229.8 kB / 0.6832 GB, free: 36.71 MB / 411.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4012 * Number of variables: 4012 Notification: Performance of Generate backend data structure: time 0.06251/2.067, allocations: 12.3 MB / 0.6952 GB, free: 32.78 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.7e-05/2.067, allocations: 8.688 kB / 0.6952 GB, free: 32.78 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03697/2.104, allocations: 3.988 MB / 0.6991 GB, free: 32.03 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04921/2.153, allocations: 12.2 MB / 0.711 GB, free: 30.79 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008442/2.154, allocations: 384.8 kB / 0.7114 GB, free: 30.79 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008171/2.162, allocations: 0.7028 MB / 0.712 GB, free: 30.78 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05587/2.218, allocations: 21.49 MB / 0.733 GB, free: 30.72 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07958/2.298, allocations: 26.43 MB / 0.7588 GB, free: 18.43 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007805/2.299, allocations: 98.95 kB / 0.7589 GB, free: 18.38 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00658/2.305, allocations: 55.28 kB / 0.759 GB, free: 18.33 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005728/2.311, allocations: 2.581 MB / 0.7615 GB, free: 16.18 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6142/2.925, allocations: 117.3 MB / 0.876 GB, free: 25.82 MB / 459.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02062/2.946, allocations: 10.49 MB / 0.8863 GB, free: 25.16 MB / 459.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01769/2.964, allocations: 8.506 MB / 0.8946 GB, free: 25.11 MB / 459.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07061/3.034, allocations: 30.89 MB / 0.9247 GB, free: 13.26 MB / 459.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.173e-05/3.034, allocations: 84.91 kB / 0.9248 GB, free: 13.18 MB / 459.1 MB Notification: Performance of pre-optimization done (n=483): time 1.139e-05/3.034, allocations: 0 / 0.9248 GB, free: 13.18 MB / 459.1 MB Notification: Performance of matching and sorting (n=708): time 0.923/3.957, allocations: 118 MB / 1.04 GB, free: 84.03 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.786e-05/3.958, allocations: 207.5 kB / 1.04 GB, free: 83.87 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01621/3.974, allocations: 6.104 MB / 1.046 GB, free: 83.31 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002446/3.976, allocations: 25.7 kB / 1.046 GB, free: 83.28 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006164/3.983, allocations: 7.033 MB / 1.053 GB, free: 79.27 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.005214/3.988, allocations: 2.433 MB / 1.056 GB, free: 77.75 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003622/3.991, allocations: 3.906 kB / 1.056 GB, free: 77.75 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.001703/3.993, allocations: 0.922 MB / 1.056 GB, free: 77.4 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02228/4.016, allocations: 9.703 MB / 1.066 GB, free: 76.12 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02789/4.043, allocations: 16.56 MB / 1.082 GB, free: 62.83 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03471/4.078, allocations: 12.91 MB / 1.095 GB, free: 57.94 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003192/4.079, allocations: 66.66 kB / 1.095 GB, free: 57.94 MB / 475.1 MB Notification: Performance of matching and sorting (n=1890) (initialization): time 0.07405/4.153, allocations: 25.63 MB / 1.12 GB, free: 48.11 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001796/4.153, allocations: 108 kB / 1.12 GB, free: 48 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000358/4.153, allocations: 241.8 kB / 1.12 GB, free: 47.77 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004268/4.154, allocations: 368 kB / 1.12 GB, free: 47.41 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0362/4.19, allocations: 4.304 MB / 1.125 GB, free: 44.01 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005149/4.19, allocations: 480.5 kB / 1.125 GB, free: 43.59 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02281/4.213, allocations: 0.9538 MB / 1.126 GB, free: 42.98 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004717/4.218, allocations: 0.7659 MB / 1.127 GB, free: 42.23 MB / 475.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1089 * Number of states: 0 () * Number of discrete variables: 102 (body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body3.cylinderColor[3],body3.cylinderColor[2],body3.cylinderColor[1],rod4.color[3],rod4.color[2],rod4.color[1],jointRRR3.rodColor[3],jointRRR3.rodColor[2],jointRRR3.rodColor[1],jointRRR3.cylinderColor[3],jointRRR3.cylinderColor[2],jointRRR3.cylinderColor[1],jointRRR3.jointUSR.rod1Color[3],jointRRR3.jointUSR.rod1Color[2],jointRRR3.jointUSR.rod1Color[1],jointRRR3.jointUSR.cylinderColor[3],jointRRR3.jointUSR.cylinderColor[2],jointRRR3.jointUSR.cylinderColor[1],jointRRR3.jointUSR.sphereColor[3],jointRRR3.jointUSR.sphereColor[2],jointRRR3.jointUSR.sphereColor[1],jointRRR3.jointUSR.revoluteColor[3],jointRRR3.jointUSR.revoluteColor[2],jointRRR3.jointUSR.revoluteColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body2.cylinderColor[3],body2.cylinderColor[2],body2.cylinderColor[1],rod3.color[3],rod3.color[2],rod3.color[1],jointRRR2.rodColor[3],jointRRR2.rodColor[2],jointRRR2.rodColor[1],jointRRR2.cylinderColor[3],jointRRR2.cylinderColor[2],jointRRR2.cylinderColor[1],jointRRR2.jointUSR.rod1Color[3],jointRRR2.jointUSR.rod1Color[2],jointRRR2.jointUSR.rod1Color[1],jointRRR2.jointUSR.cylinderColor[3],jointRRR2.jointUSR.cylinderColor[2],jointRRR2.jointUSR.cylinderColor[1],jointRRR2.jointUSR.sphereColor[3],jointRRR2.jointUSR.sphereColor[2],jointRRR2.jointUSR.sphereColor[1],jointRRR2.jointUSR.revoluteColor[3],jointRRR2.jointUSR.revoluteColor[2],jointRRR2.jointUSR.revoluteColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body1.cylinderColor[3],body1.cylinderColor[2],body1.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],rod1.color[3],rod1.color[2],rod1.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],jointRRR1.rodColor[3],jointRRR1.rodColor[2],jointRRR1.rodColor[1],jointRRR1.cylinderColor[3],jointRRR1.cylinderColor[2],jointRRR1.cylinderColor[1],jointRRR1.jointUSR.revolute.positiveBranch,jointRRR2.jointUSR.revolute.positiveBranch,jointRRR3.jointUSR.revolute.positiveBranch,jointRRR1.jointUSR.rod1Color[3],jointRRR1.jointUSR.rod1Color[2],jointRRR1.jointUSR.rod1Color[1],jointRRR1.jointUSR.cylinderColor[3],jointRRR1.jointUSR.cylinderColor[2],jointRRR1.jointUSR.cylinderColor[1],jointRRR1.jointUSR.sphereColor[3],jointRRR1.jointUSR.sphereColor[2],jointRRR1.jointUSR.sphereColor[1],jointRRR1.jointUSR.revoluteColor[3],jointRRR1.jointUSR.revoluteColor[2],jointRRR1.jointUSR.revoluteColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1860): * Single equations (assignments): 1854 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007422/4.225, allocations: 0.7719 MB / 1.128 GB, free: 41.47 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04387/4.269, allocations: 17.32 MB / 1.144 GB, free: 25.78 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004426/4.274, allocations: 0.7482 MB / 1.145 GB, free: 25.02 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04891/4.323, allocations: 18.52 MB / 1.163 GB, free: 8.945 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001058/4.323, allocations: 72 kB / 1.163 GB, free: 8.875 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.167e-05/4.323, allocations: 0 / 1.163 GB, free: 8.875 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002097/4.323, allocations: 42.22 kB / 1.163 GB, free: 8.871 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4643/4.788, allocations: 39.16 MB / 1.202 GB, free: 80.74 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.465e-05/4.788, allocations: 1.312 kB / 1.202 GB, free: 80.74 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02548/4.813, allocations: 2.12 MB / 1.204 GB, free: 80.73 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001206/4.813, allocations: 26.91 kB / 1.204 GB, free: 80.73 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002336/4.816, allocations: 17.69 kB / 1.204 GB, free: 80.73 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.056e-05/4.816, allocations: 24.19 kB / 1.204 GB, free: 80.73 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.816e-06/4.816, allocations: 1.781 kB / 1.204 GB, free: 80.73 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07016/4.886, allocations: 31.9 MB / 1.235 GB, free: 71.43 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0108/4.897, allocations: 2.63 MB / 1.237 GB, free: 70.39 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004593/4.901, allocations: 10.92 kB / 1.238 GB, free: 70.39 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01505/4.917, allocations: 0.649 MB / 1.238 GB, free: 70.39 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002937/4.92, allocations: 366.1 kB / 1.238 GB, free: 70.34 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002141/4.922, allocations: 170.7 kB / 1.239 GB, free: 70.29 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.01104/4.933, allocations: 4.06 MB / 1.243 GB, free: 68.8 MB / 475.1 MB Notification: Performance of sort global known variables: time 6.81e-07/4.933, allocations: 2.75 kB / 1.243 GB, free: 68.8 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.02114/4.954, allocations: 2.752 MB / 1.245 GB, free: 68.8 MB / 475.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (692): * Single equations (assignments): 689 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.07003/5.024, allocations: 32.89 MB / 1.277 GB, free: 50.24 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.04624/5.07, allocations: 22.07 MB / 1.299 GB, free: 30.46 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 1.15e-05/5.07, allocations: 5.859 kB / 1.299 GB, free: 30.46 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01984/5.09, allocations: 9.516 MB / 1.308 GB, free: 21.78 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00779/5.098, allocations: 0.6309 MB / 1.309 GB, free: 21.24 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4532/5.551, allocations: 33.12 MB / 1.341 GB, free: 95.25 MB / 491.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02234/5.574, allocations: 8.248 MB / 1.349 GB, free: 94.26 MB / 491.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02437/5.598, allocations: 5.687 MB / 1.355 GB, free: 94.25 MB / 491.1 MB Notification: Performance of SimCode: time 2.966e-06/5.598, allocations: 0 / 1.355 GB, free: 94.25 MB / 491.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.823/12.42, allocations: 248.5 MB / 1.598 GB, free: 48.76 MB / 491.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat does not exist to compare? outputFormat=mat