Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001136/0.001136, allocations: 93.86 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001134/0.001134, allocations: 192.9 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002652/0.0002653, allocations: 8 kB / 306.8 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1192, allocations: 51.49 MB / 358.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01294/0.1322, allocations: 12.64 MB / 370.9 MB, free: 1.094 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2439/0.3761, allocations: 4.044 MB / 375 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001706/0.3779, allocations: 55.67 kB / 375 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001439/0.3793, allocations: 0.601 MB / 375.6 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005334/0.3847, allocations: 2.136 MB / 377.8 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001282/0.386, allocations: 407.3 kB / 378.2 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004315/0.3903, allocations: 2.773 MB / 381 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002321/0.3927, allocations: 1.325 MB / 382.3 MB, free: 7.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001542/0.3942, allocations: 0.6993 MB / 383 MB, free: 7.488 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001888/0.3961, allocations: 1.143 MB / 384.1 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003381/0.3965, allocations: 78.64 kB / 384.2 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001678/0.3982, allocations: 0.7216 MB / 384.9 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001088/0.3993, allocations: 0.9408 MB / 385.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005631/0.3998, allocations: 497 kB / 386.3 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003036/0.4029, allocations: 2.944 MB / 389.3 MB, free: 5.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.4029, allocations: 0 / 389.3 MB, free: 5.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.4029, allocations: 4 kB / 389.3 MB, free: 5.316 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.576e-05/0.403, allocations: 1 kB / 389.3 MB, free: 5.316 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.004473/0.4075, allocations: 2.446 MB / 391.7 MB, free: 3.738 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.4075, allocations: 9.625 kB / 391.8 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006444/0.4082, allocations: 453.8 kB / 392.2 MB, free: 3.594 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005513/0.4137, allocations: 1.698 MB / 393.9 MB, free: 2.789 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00318/0.4169, allocations: 1.491 MB / 395.4 MB, free: 2.125 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.963e-05/0.417, allocations: 115.6 kB / 395.5 MB, free: 2.121 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003089/0.4173, allocations: 151.1 kB / 395.6 MB, free: 2.121 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008831/0.4262, allocations: 6.368 MB / 402 MB, free: 13.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.728e-05/0.4263, allocations: 35.72 kB / 402 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002288/0.4265, allocations: 81.3 kB / 402.1 MB, free: 13.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002369/0.4289, allocations: 1.433 MB / 403.6 MB, free: 12.42 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01038/0.4393, allocations: 5.659 MB / 409.2 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03127/0.4706, allocations: 26.27 MB / 435.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004258/0.4749, allocations: 2.258 MB / 437.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001358/0.4763, allocations: 1.018 MB / 438.8 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.119e-05/0.4763, allocations: 6.5 kB / 438.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.4764, allocations: 46.5 kB / 438.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 3.637e-06/0.4764, allocations: 5.203 kB / 438.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.0201/0.4965, allocations: 8.537 MB / 447.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.185e-05/0.4966, allocations: 150.1 kB / 447.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003775/0.5004, allocations: 2.817 MB / 450.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001856/0.5006, allocations: 37.7 kB / 450.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001409/0.502, allocations: 2.07 MB / 452.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004581/0.5025, allocations: 441.1 kB / 452.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.5027, allocations: 84 kB / 452.9 MB, free: 10 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0005002/0.5032, allocations: 0.4918 MB / 453.4 MB, free: 9.504 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002368/0.5055, allocations: 1.394 MB / 454.8 MB, free: 8.102 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004041/0.5096, allocations: 4.218 MB / 459 MB, free: 2.453 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00351/0.5131, allocations: 2.38 MB / 461.4 MB, free: 76 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.781e-05/0.5132, allocations: 28 kB / 461.4 MB, free: 48 kB / 366.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01088/0.5241, allocations: 6.039 MB / 467.5 MB, free: 10 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.942e-05/0.5242, allocations: 49.31 kB / 467.5 MB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001046/0.5243, allocations: 104 kB / 467.6 MB, free: 9.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002238/0.5265, allocations: 0.8129 MB / 468.4 MB, free: 9.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002844/0.5294, allocations: 0.9863 MB / 469.4 MB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005797/0.5352, allocations: 4.148 MB / 473.6 MB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00299/0.5382, allocations: 243.6 kB / 473.8 MB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003936/0.5386, allocations: 282.7 kB / 474.1 MB, free: 3.258 MB / 382.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.00211/0.5407, allocations: 1.371 MB / 475.5 MB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003628/0.5411, allocations: 233 kB / 475.7 MB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003756/0.5449, allocations: 1.853 MB / 477.6 MB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-05/0.5449, allocations: 15.98 kB / 477.6 MB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.5449, allocations: 4 kB / 477.6 MB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.5449, allocations: 9.516 kB / 477.6 MB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008595/0.5535, allocations: 4.8 MB / 482.4 MB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.5536, allocations: 0 / 482.4 MB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005782/0.5542, allocations: 135.8 kB / 482.5 MB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001833/0.556, allocations: 0.6444 MB / 483.2 MB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.961e-05/0.5561, allocations: 26.78 kB / 483.2 MB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005175/0.5613, allocations: 3.69 MB / 486.9 MB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.5613, allocations: 0 / 486.9 MB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005811/0.5671, allocations: 3.688 MB / 490.6 MB, free: 2.535 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000664/0.5678, allocations: 293.9 kB / 490.8 MB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002395/0.5681, allocations: 23.12 kB / 490.9 MB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008128/0.5689, allocations: 59.91 kB / 490.9 MB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001434/0.569, allocations: 59.92 kB / 491 MB, free: 2.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.739e-05/0.5691, allocations: 32 kB / 491 MB, free: 2.059 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002622/0.5717, allocations: 1.746 MB / 492.8 MB, free: 312 kB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5718, allocations: 0 / 492.8 MB, free: 312 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.003336/0.5751, allocations: 0.6484 MB / 493.4 MB, free: 15.65 MB / 414.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.006011/0.5811, allocations: 4.303 MB / 497.7 MB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005717/0.5869, allocations: 3.382 MB / 0.4894 GB, free: 7.949 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.5869, allocations: 8.062 kB / 0.4894 GB, free: 7.941 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001294/0.5882, allocations: 0.9198 MB / 0.4903 GB, free: 7.008 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001876/0.5901, allocations: 259.9 kB / 0.4905 GB, free: 6.754 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03935/0.6294, allocations: 21.13 MB / 0.5111 GB, free: 15.05 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002117/0.6316, allocations: 2.184 MB / 0.5133 GB, free: 12.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003275/0.6349, allocations: 1.392 MB / 0.5146 GB, free: 11.43 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001512/0.6364, allocations: 1.05 MB / 0.5157 GB, free: 10.38 MB / 446.1 MB Notification: Performance of SimCode: time 6.72e-07/0.6364, allocations: 0 / 0.5157 GB, free: 10.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2995/0.9359, allocations: 48.4 MB / 0.5629 GB, free: 124.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001249/0.9361, allocations: 221.1 kB / 0.5631 GB, free: 124.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.142/4.078, allocations: 0 / 0.5631 GB, free: 124.5 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat does not exist to compare? outputFormat=mat