Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.Elementary.Pendulum,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_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 3.2.3+maint.om/package.mo): time 0.00221/0.002215, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.054/2.054, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001154/0.001154, allocations: 98.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005096/0.0005098, allocations: 8 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1013, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01951/0.1208, allocations: 11.99 MB / 386.6 MB, free: 3.312 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.2778/0.3987, allocations: 4.09 MB / 390.7 MB, free: 8.594 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002312/0.4011, allocations: 52.72 kB / 390.8 MB, free: 8.594 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002254/0.4034, allocations: 0.5386 MB / 391.3 MB, free: 8.594 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008264/0.4117, allocations: 1.95 MB / 393.3 MB, free: 8.559 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001853/0.4136, allocations: 398.5 kB / 393.7 MB, free: 8.559 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004181/0.4178, allocations: 1.45 MB / 395.1 MB, free: 8.547 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003126/0.421, allocations: 1.324 MB / 396.4 MB, free: 8.371 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001598/0.4226, allocations: 0.5969 MB / 397 MB, free: 8.371 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002177/0.4249, allocations: 0.8384 MB / 397.9 MB, free: 8.367 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006696/0.4256, allocations: 82.22 kB / 397.9 MB, free: 8.363 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002853/0.4284, allocations: 0.7059 MB / 398.6 MB, free: 8.363 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001952/0.4304, allocations: 0.8787 MB / 399.5 MB, free: 8.32 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00101/0.4315, allocations: 496.4 kB / 400 MB, free: 8.188 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005697/0.4372, allocations: 2.961 MB / 403 MB, free: 6.996 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.4373, allocations: 0 / 403 MB, free: 6.996 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.218e-06/0.4373, allocations: 0.9375 kB / 403 MB, free: 6.996 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001656/0.4375, allocations: 0 / 403 MB, free: 6.996 MB / 282.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.008603/0.4461, allocations: 2.496 MB / 405.5 MB, free: 5.398 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.692e-05/0.4462, allocations: 13.75 kB / 405.5 MB, free: 5.395 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001672/0.4479, allocations: 455.9 kB / 405.9 MB, free: 5.25 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01278/0.4607, allocations: 1.97 MB / 407.9 MB, free: 4.375 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005009/0.4657, allocations: 1.547 MB / 409.4 MB, free: 3.727 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002058/0.466, allocations: 118.3 kB / 409.6 MB, free: 3.723 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001148/0.4672, allocations: 150.2 kB / 409.7 MB, free: 3.723 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01637/0.4835, allocations: 6.387 MB / 416.1 MB, free: 1.07 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001139/0.4837, allocations: 31.66 kB / 416.1 MB, free: 1.039 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005847/0.4843, allocations: 81.77 kB / 416.2 MB, free: 1.012 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004397/0.4887, allocations: 1.438 MB / 417.6 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01851/0.5073, allocations: 5.692 MB / 423.3 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05178/0.5591, allocations: 26.35 MB / 449.7 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007815/0.567, allocations: 2.26 MB / 451.9 MB, free: 12.48 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001143/0.5672, allocations: 14.58 kB / 452 MB, free: 12.47 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.695e-05/0.5673, allocations: 46.5 kB / 452 MB, free: 12.42 MB / 330.7 MB Notification: Performance of pre-optimization done (n=98): time 5.861e-06/0.5673, allocations: 0 / 452 MB, free: 12.42 MB / 330.7 MB Notification: Performance of matching and sorting (n=106): time 0.04023/0.6075, allocations: 8.882 MB / 460.9 MB, free: 3.344 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/0.6077, allocations: 140.5 kB / 461 MB, free: 3.176 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007917/0.6156, allocations: 2.951 MB / 464 MB, free: 216 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000377/0.6161, allocations: 33.7 kB / 464 MB, free: 176 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00294/0.619, allocations: 2.081 MB / 466.1 MB, free: 14.15 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001046/0.6201, allocations: 443.5 kB / 466.5 MB, free: 13.72 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000678/0.6209, allocations: 84 kB / 466.6 MB, free: 13.64 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.00052/0.6214, allocations: 0.4902 MB / 467.1 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00453/0.6259, allocations: 1.39 MB / 468.5 MB, free: 11.74 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007638/0.6336, allocations: 4.207 MB / 472.7 MB, free: 6.109 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006618/0.6403, allocations: 2.37 MB / 475.1 MB, free: 3.738 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001003/0.6405, allocations: 28 kB / 475.1 MB, free: 3.711 MB / 346.7 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.02005/0.6605, allocations: 5.982 MB / 481.1 MB, free: 13.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000111/0.6607, allocations: 52.25 kB / 481.1 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001685/0.6609, allocations: 100 kB / 481.2 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004448/0.6654, allocations: 0.8045 MB / 482 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006182/0.6716, allocations: 0.9825 MB / 483 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/0.6817, allocations: 4.25 MB / 487.3 MB, free: 7.402 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004978/0.6868, allocations: 249.3 kB / 487.5 MB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001058/0.6879, allocations: 275.3 kB / 487.8 MB, free: 6.895 MB / 362.7 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.004177/0.6921, allocations: 1.368 MB / 489.1 MB, free: 5.512 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006785/0.6928, allocations: 233 kB / 489.4 MB, free: 5.281 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007156/0.6999, allocations: 1.853 MB / 491.2 MB, free: 3.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.746e-05/0.7001, allocations: 12 kB / 491.2 MB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.652e-05/0.7001, allocations: 8 kB / 491.2 MB, free: 3.391 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.903e-05/0.7001, allocations: 7.938 kB / 491.2 MB, free: 3.383 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01637/0.7165, allocations: 4.817 MB / 496.1 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-05/0.7166, allocations: 0 / 496.1 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001309/0.7179, allocations: 135.8 kB / 496.2 MB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003933/0.7219, allocations: 0.6488 MB / 496.8 MB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002548/0.7222, allocations: 16 kB / 496.9 MB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008672/0.7308, allocations: 3.785 MB / 0.4889 GB, free: 9.789 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.7309, allocations: 3.953 kB / 0.4889 GB, free: 9.785 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01097/0.7419, allocations: 3.787 MB / 0.4926 GB, free: 5.938 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001718/0.7437, allocations: 441.9 kB / 0.493 GB, free: 5.484 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007633/0.7445, allocations: 19.98 kB / 0.4931 GB, free: 5.465 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001858/0.7463, allocations: 59.92 kB / 0.4931 GB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003792/0.7468, allocations: 51.92 kB / 0.4932 GB, free: 5.355 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/0.7469, allocations: 32.06 kB / 0.4932 GB, free: 5.324 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004962/0.7519, allocations: 1.848 MB / 0.495 GB, free: 3.469 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.22e-07/0.7519, allocations: 0 / 0.495 GB, free: 3.469 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005374/0.7573, allocations: 0.664 MB / 0.4956 GB, free: 2.805 MB / 378.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 () * 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.01162/0.769, allocations: 4.731 MB / 0.5003 GB, free: 14.02 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009226/0.7783, allocations: 3.386 MB / 0.5036 GB, free: 10.64 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.7783, allocations: 0 / 0.5036 GB, free: 10.64 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00242/0.7808, allocations: 0.9219 MB / 0.5045 GB, free: 9.703 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00251/0.7833, allocations: 242.6 kB / 0.5047 GB, free: 9.465 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3601/1.143, allocations: 90.75 MB / 0.5933 GB, free: 104.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004307/1.148, allocations: 2.254 MB / 0.5955 GB, free: 103.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002505/1.15, allocations: 1.089 MB / 0.5966 GB, free: 103 MB / 426.7 MB Notification: Performance of SimCode: time 1.382e-06/1.15, allocations: 0 / 0.5966 GB, free: 103 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.765/4.915, allocations: 61.55 MB / 0.6567 GB, free: 48.45 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat does not exist to compare? outputFormat=mat