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/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) 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.001428/0.001428, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002594/0.0002594, allocations: 7.938 kB / 300.8 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1099, allocations: 50.42 MB / 351.2 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01245/0.1223, allocations: 11.97 MB / 363.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009034/0.1314, allocations: 4.123 MB / 367.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002015/0.1335, allocations: 51.88 kB / 367.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001295/0.1348, allocations: 0.5366 MB / 367.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00546/0.1402, allocations: 1.952 MB / 369.9 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001121/0.1414, allocations: 399.3 kB / 370.3 MB, free: 8.535 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002915/0.1443, allocations: 1.442 MB / 371.7 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00226/0.1466, allocations: 1.313 MB / 373 MB, free: 5.738 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009941/0.1476, allocations: 0.6034 MB / 373.6 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001064/0.1487, allocations: 0.8333 MB / 374.5 MB, free: 4.297 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002089/0.1489, allocations: 79.98 kB / 374.5 MB, free: 4.219 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001399/0.1503, allocations: 0.7177 MB / 375.2 MB, free: 3.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008524/0.1512, allocations: 0.8727 MB / 376.1 MB, free: 2.625 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004926/0.1517, allocations: 492.1 kB / 376.6 MB, free: 2.137 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003408/0.1551, allocations: 2.95 MB / 379.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1551, allocations: 0 / 379.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.1551, allocations: 0 / 379.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.705e-05/0.1552, allocations: 4 kB / 379.6 MB, free: 15.17 MB / 318.1 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.005141/0.1604, allocations: 2.485 MB / 382 MB, free: 12.63 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.1604, allocations: 15.97 kB / 382.1 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00064/0.1611, allocations: 445.8 kB / 382.5 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006909/0.168, allocations: 1.974 MB / 384.5 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003761/0.1718, allocations: 1.39 MB / 385.9 MB, free: 8.754 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001688/0.172, allocations: 122.8 kB / 386 MB, free: 8.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004169/0.1724, allocations: 155.7 kB / 386.1 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009866/0.1823, allocations: 6.386 MB / 392.5 MB, free: 1.574 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.187e-05/0.1824, allocations: 31.75 kB / 392.5 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002581/0.1826, allocations: 79.89 kB / 392.6 MB, free: 1.465 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002365/0.185, allocations: 1.437 MB / 394.1 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01019/0.1952, allocations: 5.697 MB / 399.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2719/0.4672, allocations: 26.33 MB / 426.1 MB, free: 58.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003993/0.4712, allocations: 2.247 MB / 428.3 MB, free: 57.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.468e-05/0.4713, allocations: 19.22 kB / 428.3 MB, free: 57.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.4713, allocations: 43.47 kB / 428.4 MB, free: 57.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 3.336e-06/0.4714, allocations: 0 / 428.4 MB, free: 57.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.02137/0.4927, allocations: 8.811 MB / 437.2 MB, free: 55.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.508e-05/0.4928, allocations: 139.5 kB / 437.3 MB, free: 55.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004236/0.4971, allocations: 2.93 MB / 440.3 MB, free: 55.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002046/0.4973, allocations: 40.66 kB / 440.3 MB, free: 54.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001568/0.4989, allocations: 2.07 MB / 442.4 MB, free: 53.72 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005234/0.4994, allocations: 438 kB / 442.8 MB, free: 53.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.4996, allocations: 88.55 kB / 442.9 MB, free: 53.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002486/0.4998, allocations: 497.8 kB / 443.4 MB, free: 53.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001815/0.5016, allocations: 1.396 MB / 444.8 MB, free: 53.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002832/0.5045, allocations: 4.196 MB / 449 MB, free: 49.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002859/0.5074, allocations: 2.375 MB / 451.3 MB, free: 48.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-05/0.5074, allocations: 32.66 kB / 451.4 MB, free: 48.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01119/0.5186, allocations: 6.051 MB / 457.4 MB, free: 45.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.63e-05/0.5188, allocations: 48 kB / 457.5 MB, free: 45.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001102/0.5189, allocations: 100 kB / 457.6 MB, free: 45.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002054/0.521, allocations: 0.8088 MB / 458.4 MB, free: 44.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002835/0.5238, allocations: 0.991 MB / 459.4 MB, free: 43.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004454/0.5283, allocations: 4.247 MB / 463.6 MB, free: 39.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003704/0.532, allocations: 252.3 kB / 463.9 MB, free: 38.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006111/0.5326, allocations: 276.8 kB / 464.1 MB, free: 38.71 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (533): * Single equations (assignments): 529 * 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.002563/0.5352, allocations: 1.365 MB / 465.5 MB, free: 37.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005941/0.5358, allocations: 229 kB / 465.7 MB, free: 37.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003326/0.5391, allocations: 1.849 MB / 467.6 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-05/0.5392, allocations: 13.83 kB / 467.6 MB, free: 35.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/0.5392, allocations: 8.703 kB / 467.6 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.5392, allocations: 7.984 kB / 467.6 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008072/0.5473, allocations: 4.803 MB / 472.4 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/0.5473, allocations: 0 / 472.4 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005869/0.5479, allocations: 132.6 kB / 472.5 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001754/0.5497, allocations: 0.6451 MB / 473.2 MB, free: 29.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.471e-05/0.5498, allocations: 20 kB / 473.2 MB, free: 29.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003874/0.5537, allocations: 3.796 MB / 477 MB, free: 25.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.5537, allocations: 0 / 477 MB, free: 25.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005211/0.5589, allocations: 3.781 MB / 480.8 MB, free: 21.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009837/0.5599, allocations: 305.8 kB / 481.1 MB, free: 21.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002509/0.5602, allocations: 27.53 kB / 481.1 MB, free: 21.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000841/0.561, allocations: 61.23 kB / 481.2 MB, free: 21.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001501/0.5612, allocations: 59.86 kB / 481.2 MB, free: 21.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.566e-05/0.5613, allocations: 24 kB / 481.2 MB, free: 21.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002481/0.5637, allocations: 1.836 MB / 483.1 MB, free: 19.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5638, allocations: 0 / 483.1 MB, free: 19.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.004013/0.5678, allocations: 0.6664 MB / 483.7 MB, free: 18.81 MB / 350.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 () * Number of clocked 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.00565/0.5734, allocations: 4.727 MB / 488.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004834/0.5783, allocations: 3.379 MB / 491.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.5783, allocations: 0 / 491.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.5793, allocations: 0.9403 MB / 492.8 MB, free: 9.711 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/0.5807, allocations: 229.7 kB / 493 MB, free: 9.488 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06447/0.6452, allocations: 90.39 MB / 0.5697 GB, free: 11.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002694/0.6479, allocations: 2.247 MB / 0.5719 GB, free: 9.621 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003546/0.6515, allocations: 1.392 MB / 0.5733 GB, free: 8.223 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001817/0.6534, allocations: 1.054 MB / 0.5743 GB, free: 7.168 MB / 446.1 MB Notification: Performance of SimCode: time 1.242e-06/0.6534, allocations: 0 / 0.5743 GB, free: 7.168 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3668/1.02, allocations: 49.11 MB / 0.6223 GB, free: 123.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002421/1.02, allocations: 212.5 kB / 0.6225 GB, free: 123.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.936/3.957, allocations: 0 / 0.6225 GB, free: 123.2 MB / 446.1 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