Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 221.3 MB / 235.5 MB, free: 2.961 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008795/0.0008794, allocations: 87.86 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.901e-05/2.904e-05, allocations: 4 kB / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1297, allocations: 50.42 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3659/0.4957, allocations: 91.76 MB / 486.1 MB, free: 11.62 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.496, allocations: 87.95 kB / 486.2 MB, free: 11.53 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1575/0.6535, allocations: 58.4 MB / 0.5318 GB, free: 0.6797 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.6535, allocations: 0 / 0.5318 GB, free: 0.6797 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.612e-05/0.6536, allocations: 40 kB / 0.5319 GB, free: 0.6406 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.006873/0.6605, allocations: 2.533 MB / 0.5343 GB, free: 14.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.6606, allocations: 8.031 kB / 0.5344 GB, free: 14.04 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001047/0.6616, allocations: 493.8 kB / 0.5348 GB, free: 13.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008664/0.6703, allocations: 1.974 MB / 0.5368 GB, free: 11.57 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009576/0.6799, allocations: 3.142 MB / 0.5398 GB, free: 8.379 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001709/0.6802, allocations: 176.6 kB / 0.54 GB, free: 8.203 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007506/0.6809, allocations: 235.8 kB / 0.5402 GB, free: 7.973 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01186/0.6928, allocations: 6.735 MB / 0.5468 GB, free: 440 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001046/0.6929, allocations: 47.62 kB / 0.5468 GB, free: 392 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003779/0.6933, allocations: 119.9 kB / 0.547 GB, free: 272 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2687/0.9621, allocations: 0.7119 MB / 0.5476 GB, free: 104.3 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01557/0.9777, allocations: 5.693 MB / 0.5532 GB, free: 104.3 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03955/1.017, allocations: 33.37 MB / 0.5858 GB, free: 82.05 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004656/1.022, allocations: 2.277 MB / 0.588 GB, free: 81.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001497/1.024, allocations: 1.028 MB / 0.589 GB, free: 80.77 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.987e-05/1.024, allocations: 10.34 kB / 0.589 GB, free: 80.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.612e-05/1.024, allocations: 45.88 kB / 0.5891 GB, free: 80.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=98): time 3.186e-06/1.024, allocations: 0 / 0.5891 GB, free: 80.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=106): time 0.01448/1.038, allocations: 6.979 MB / 0.5959 GB, free: 77.93 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.011e-05/1.038, allocations: 136.2 kB / 0.596 GB, free: 77.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003701/1.042, allocations: 2.499 MB / 0.5985 GB, free: 76.87 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001675/1.042, allocations: 38.41 kB / 0.5985 GB, free: 76.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001539/1.044, allocations: 2.075 MB / 0.6005 GB, free: 75.36 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004874/1.044, allocations: 440.1 kB / 0.6009 GB, free: 75.05 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001646/1.044, allocations: 82.97 kB / 0.601 GB, free: 74.99 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002997/1.045, allocations: 0.4909 MB / 0.6015 GB, free: 74.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001879/1.047, allocations: 1.355 MB / 0.6028 GB, free: 74.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002967/1.05, allocations: 4.153 MB / 0.6069 GB, free: 69.92 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002827/1.052, allocations: 2.368 MB / 0.6092 GB, free: 69.17 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.496e-05/1.052, allocations: 29.31 kB / 0.6092 GB, free: 69.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=567) (initialization): time 0.01065/1.063, allocations: 5.965 MB / 0.615 GB, free: 67.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.65e-05/1.063, allocations: 49.22 kB / 0.6151 GB, free: 67.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-05/1.063, allocations: 101.3 kB / 0.6152 GB, free: 67.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002087/1.065, allocations: 0.8003 MB / 0.616 GB, free: 67.06 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002836/1.068, allocations: 1.001 MB / 0.6169 GB, free: 66.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005035/1.073, allocations: 4.098 MB / 0.621 GB, free: 64.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004105/1.077, allocations: 287.5 kB / 0.6212 GB, free: 64.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008396/1.078, allocations: 279.3 kB / 0.6215 GB, free: 64.64 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 457 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (531): * Single equations (assignments): 527 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007264/1.079, allocations: 448.2 kB / 0.6219 GB, free: 64.27 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006576/1.08, allocations: 233.8 kB / 0.6221 GB, free: 64.14 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003874/1.084, allocations: 1.838 MB / 0.6239 GB, free: 63.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.668e-05/1.084, allocations: 14.38 kB / 0.624 GB, free: 63.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/1.084, allocations: 3.531 kB / 0.624 GB, free: 63.59 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/1.084, allocations: 7.516 kB / 0.624 GB, free: 63.59 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009606/1.093, allocations: 4.791 MB / 0.6286 GB, free: 61.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/1.093, allocations: 0 / 0.6286 GB, free: 61.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006563/1.094, allocations: 134.6 kB / 0.6288 GB, free: 61.78 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00189/1.096, allocations: 0.6499 MB / 0.6294 GB, free: 61.38 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.694e-05/1.096, allocations: 17.17 kB / 0.6294 GB, free: 61.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003982/1.1, allocations: 3.634 MB / 0.633 GB, free: 58.12 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/1.1, allocations: 10.53 kB / 0.633 GB, free: 58.11 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005254/1.105, allocations: 3.746 MB / 0.6366 GB, free: 54.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/1.106, allocations: 302.9 kB / 0.6369 GB, free: 54.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002211/1.107, allocations: 12.06 kB / 0.6369 GB, free: 54.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009204/1.107, allocations: 77.64 kB / 0.637 GB, free: 54.53 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000198/1.108, allocations: 60.75 kB / 0.6371 GB, free: 54.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.57e-05/1.108, allocations: 29.17 kB / 0.6371 GB, free: 54.46 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002549/1.11, allocations: 1.714 MB / 0.6388 GB, free: 52.94 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.6e-07/1.11, allocations: 4 kB / 0.6388 GB, free: 52.93 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003624/1.114, allocations: 0.6498 MB / 0.6394 GB, free: 52.29 MB / 426.7 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 (75): * Single equations (assignments): 71 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00539/1.119, allocations: 4.686 MB / 0.644 GB, free: 48.16 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005074/1.124, allocations: 3.343 MB / 0.6473 GB, free: 45.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.331e-06/1.124, allocations: 0 / 0.6473 GB, free: 45.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/1.126, allocations: 0.9129 MB / 0.6481 GB, free: 44.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001504/1.127, allocations: 243.8 kB / 0.6484 GB, free: 44.06 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/1.138, allocations: 5.25 MB / 0.6535 GB, free: 39.48 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001759/1.14, allocations: 2.245 MB / 0.6557 GB, free: 37.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0032/1.143, allocations: 1.397 MB / 0.6571 GB, free: 36.83 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001606/1.145, allocations: 1.049 MB / 0.6581 GB, free: 35.86 MB / 426.7 MB Notification: Performance of SimCode: time 1.563e-06/1.145, allocations: 0 / 0.6581 GB, free: 35.86 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07977/1.225, allocations: 48.91 MB / 0.7058 GB, free: 3.836 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001952/1.225, allocations: 186.4 kB / 0.706 GB, free: 3.605 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.56/4.785, allocations: 4.062 kB / 0.706 GB, free: 3.602 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat does not exist to compare? outputFormat=mat