Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_3_2_3_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.0009643/0.0009644, allocations: 97.34 kB / 16.95 MB, free: 6.457 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.0008808/0.0008804, allocations: 183 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.623/1.623, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004759/0.0004761, allocations: 12 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1194, allocations: 47.58 MB / 328.5 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01474/0.1342, allocations: 12.65 MB / 341.1 MB, free: 7.281 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01105/0.1453, allocations: 4.01 MB / 345.1 MB, free: 3.262 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00331/0.1487, allocations: 55.88 kB / 345.2 MB, free: 3.207 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002391/0.1511, allocations: 0.5987 MB / 345.8 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00634/0.1575, allocations: 2.145 MB / 347.9 MB, free: 464 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001392/0.1589, allocations: 415.3 kB / 348.3 MB, free: 48 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004035/0.163, allocations: 2.719 MB / 351 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002648/0.1657, allocations: 1.333 MB / 352.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001548/0.1672, allocations: 0.7121 MB / 353.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002157/0.1694, allocations: 1.149 MB / 354.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006234/0.17, allocations: 76 kB / 354.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001968/0.172, allocations: 0.7371 MB / 355 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001415/0.1735, allocations: 0.935 MB / 356 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009411/0.1744, allocations: 496.1 kB / 356.5 MB, free: 7.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003796/0.1782, allocations: 2.958 MB / 359.4 MB, free: 4.875 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.1783, allocations: 0 / 359.4 MB, free: 4.875 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1783, allocations: 3.938 kB / 359.4 MB, free: 4.871 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000166/0.1784, allocations: 0 / 359.4 MB, free: 4.871 MB / 302.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.005561/0.184, allocations: 2.45 MB / 361.9 MB, free: 2.363 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.1841, allocations: 8.031 kB / 361.9 MB, free: 2.355 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001107/0.1852, allocations: 453.8 kB / 362.3 MB, free: 1.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005826/0.191, allocations: 1.701 MB / 364 MB, free: 200 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003429/0.1945, allocations: 1.733 MB / 365.8 MB, free: 14.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001406/0.1946, allocations: 118.9 kB / 365.9 MB, free: 14.3 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006189/0.1953, allocations: 155.8 kB / 366 MB, free: 14.14 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01065/0.2059, allocations: 6.363 MB / 372.4 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.946e-05/0.2061, allocations: 31.66 kB / 372.4 MB, free: 7.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005145/0.2066, allocations: 79.89 kB / 372.5 MB, free: 7.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002507/0.2091, allocations: 1.441 MB / 373.9 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01124/0.2204, allocations: 5.654 MB / 379.6 MB, free: 56 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2286/0.449, allocations: 26.28 MB / 405.9 MB, free: 30.83 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003824/0.4529, allocations: 2.266 MB / 408.1 MB, free: 29.36 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001122/0.454, allocations: 1.014 MB / 409.2 MB, free: 28.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.906e-05/0.4541, allocations: 14.58 kB / 409.2 MB, free: 28.81 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.4541, allocations: 46.38 kB / 409.2 MB, free: 28.76 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 2.886e-06/0.4541, allocations: 0 / 409.2 MB, free: 28.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=106): time 0.02372/0.4778, allocations: 8.597 MB / 417.8 MB, free: 23.88 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.382e-05/0.478, allocations: 140.5 kB / 417.9 MB, free: 23.71 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007287/0.4853, allocations: 2.836 MB / 420.8 MB, free: 20.86 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002392/0.4856, allocations: 38.41 kB / 420.8 MB, free: 20.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001913/0.4875, allocations: 2.075 MB / 422.9 MB, free: 18.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006866/0.4882, allocations: 444.4 kB / 423.3 MB, free: 18.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000495/0.4887, allocations: 84 kB / 423.4 MB, free: 18.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0004529/0.4892, allocations: 499.6 kB / 423.9 MB, free: 17.74 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003249/0.4925, allocations: 1.39 MB / 425.3 MB, free: 16.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004804/0.4973, allocations: 4.218 MB / 429.5 MB, free: 10.69 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004746/0.5021, allocations: 2.374 MB / 431.9 MB, free: 8.312 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001417/0.5022, allocations: 32 kB / 431.9 MB, free: 8.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01485/0.5171, allocations: 6.046 MB / 438 MB, free: 2.227 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001432/0.5173, allocations: 51.95 kB / 438 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001951/0.5175, allocations: 100 kB / 438.1 MB, free: 2.078 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002782/0.5203, allocations: 0.816 MB / 438.9 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004128/0.5244, allocations: 0.9897 MB / 439.9 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007521/0.532, allocations: 4.144 MB / 444.1 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005126/0.5371, allocations: 247.5 kB / 444.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009856/0.5381, allocations: 277.6 kB / 444.6 MB, free: 11.49 MB / 334.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.004002/0.5422, allocations: 1.372 MB / 445.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009082/0.5431, allocations: 233 kB / 446.2 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006465/0.5496, allocations: 1.853 MB / 448 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.208e-05/0.5497, allocations: 17.88 kB / 448 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.44e-05/0.5497, allocations: 4 kB / 448 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-05/0.5498, allocations: 3.984 kB / 448 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/0.5618, allocations: 4.809 MB / 452.9 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-05/0.5619, allocations: 0 / 452.9 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006326/0.5625, allocations: 131.8 kB / 453 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001869/0.5644, allocations: 0.6482 MB / 453.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.5645, allocations: 22.38 kB / 453.7 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005109/0.5697, allocations: 3.693 MB / 457.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.5697, allocations: 0 / 457.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006308/0.576, allocations: 3.687 MB / 461 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/0.5771, allocations: 441.8 kB / 461.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005805/0.5777, allocations: 19.98 kB / 461.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/0.5788, allocations: 67.94 kB / 461.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/0.579, allocations: 55.86 kB / 461.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.521e-05/0.5791, allocations: 33.64 kB / 461.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.003926/0.5831, allocations: 1.754 MB / 463.4 MB, free: 8.391 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5831, allocations: 0 / 463.4 MB, free: 8.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.005388/0.5885, allocations: 0.6407 MB / 464 MB, free: 7.754 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.006995/0.5955, allocations: 4.306 MB / 468.3 MB, free: 3.414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006183/0.6017, allocations: 3.394 MB / 471.7 MB, free: 24 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/0.6017, allocations: 0 / 471.7 MB, free: 24 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001391/0.6031, allocations: 0.9264 MB / 472.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002472/0.6056, allocations: 254 kB / 472.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04669/0.6523, allocations: 21.21 MB / 494.1 MB, free: 7.059 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003513/0.6559, allocations: 2.193 MB / 496.3 MB, free: 4.836 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003671/0.6596, allocations: 1.388 MB / 497.7 MB, free: 3.441 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001642/0.6613, allocations: 1.058 MB / 498.7 MB, free: 2.383 MB / 382.1 MB Notification: Performance of SimCode: time 1.182e-06/0.6613, allocations: 4 kB / 498.8 MB, free: 2.379 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3437/1.005, allocations: 48.53 MB / 0.5345 GB, free: 131.7 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003445/1.006, allocations: 213.8 kB / 0.5347 GB, free: 131.5 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.404/4.409, allocations: 0 / 0.5347 GB, free: 131.5 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat does not exist to compare? outputFormat=mat