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.001064/0.001064, allocations: 92.53 kB / 16.93 MB, free: 5.977 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.0009933/0.0009933, allocations: 176.2 kB / 17.82 MB, free: 5.652 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.296/1.296, 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.000431/0.0004311, allocations: 8 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09047/0.09091, allocations: 47.59 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01236/0.1033, allocations: 11.98 MB / 340.4 MB, free: 7.969 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007588/0.111, allocations: 4.108 MB / 344.5 MB, free: 3.852 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001086/0.1121, allocations: 51.88 kB / 344.6 MB, free: 3.801 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001016/0.1131, allocations: 0.5327 MB / 345.1 MB, free: 3.266 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003963/0.1171, allocations: 1.948 MB / 347.1 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008133/0.1179, allocations: 403.2 kB / 347.4 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002008/0.1199, allocations: 1.454 MB / 348.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001584/0.1215, allocations: 1.333 MB / 350.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006583/0.1222, allocations: 0.5956 MB / 350.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008926/0.1231, allocations: 0.841 MB / 351.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001563/0.1233, allocations: 80 kB / 351.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001144/0.1244, allocations: 0.7021 MB / 352.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000704/0.1251, allocations: 0.8805 MB / 353.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003488/0.1255, allocations: 496.1 kB / 353.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002613/0.1281, allocations: 2.958 MB / 356.8 MB, free: 7.527 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1281, allocations: 0 / 356.8 MB, free: 7.527 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1281, allocations: 4 kB / 356.8 MB, free: 7.523 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.143e-05/0.1282, allocations: 0 / 356.8 MB, free: 7.523 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.004002/0.1322, allocations: 2.492 MB / 359.3 MB, free: 4.973 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.1322, allocations: 12.02 kB / 359.3 MB, free: 4.961 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004668/0.1327, allocations: 449.8 kB / 359.7 MB, free: 4.512 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006555/0.1393, allocations: 1.974 MB / 361.7 MB, free: 2.531 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002753/0.142, allocations: 1.542 MB / 363.2 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.24e-05/0.1421, allocations: 114.9 kB / 363.3 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003212/0.1425, allocations: 159.8 kB / 363.5 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008711/0.1512, allocations: 6.39 MB / 369.9 MB, free: 9.762 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.837e-05/0.1513, allocations: 31.73 kB / 369.9 MB, free: 9.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002239/0.1515, allocations: 79.89 kB / 370 MB, free: 9.652 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002297/0.1538, allocations: 1.429 MB / 371.4 MB, free: 8.223 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009443/0.1633, allocations: 5.701 MB / 377.1 MB, free: 2.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1813/0.3446, allocations: 26.34 MB / 403.5 MB, free: 30.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00412/0.3488, allocations: 2.258 MB / 405.7 MB, free: 29.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.991e-05/0.3489, allocations: 12.27 kB / 405.7 MB, free: 29.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.3489, allocations: 46.12 kB / 405.8 MB, free: 29.47 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 3.486e-06/0.3489, allocations: 0 / 405.8 MB, free: 29.47 MB / 318.1 MB Notification: Performance of matching and sorting (n=106): time 0.01859/0.3675, allocations: 8.884 MB / 414.7 MB, free: 24.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.967e-05/0.3676, allocations: 138.5 kB / 414.8 MB, free: 24.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002983/0.3706, allocations: 2.932 MB / 417.7 MB, free: 22.56 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001568/0.3708, allocations: 41.7 kB / 417.8 MB, free: 22.51 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008043/0.3716, allocations: 2.077 MB / 419.9 MB, free: 20.45 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002946/0.3719, allocations: 440.2 kB / 420.3 MB, free: 20.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.372, allocations: 92 kB / 420.4 MB, free: 19.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.3722, allocations: 495.6 kB / 420.9 MB, free: 19.44 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00161/0.3738, allocations: 1.394 MB / 422.3 MB, free: 18.04 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002637/0.3765, allocations: 4.199 MB / 426.5 MB, free: 12.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002544/0.379, allocations: 2.378 MB / 428.8 MB, free: 10.02 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-05/0.3791, allocations: 28 kB / 428.9 MB, free: 9.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.008786/0.3879, allocations: 6.054 MB / 434.9 MB, free: 3.934 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.639e-05/0.388, allocations: 48.97 kB / 435 MB, free: 3.887 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-05/0.388, allocations: 100 kB / 435.1 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001938/0.39, allocations: 0.8162 MB / 435.9 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002533/0.3925, allocations: 0.9786 MB / 436.9 MB, free: 1.988 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005031/0.3976, allocations: 4.246 MB / 441.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003094/0.4007, allocations: 247.7 kB / 441.3 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006073/0.4013, allocations: 281.6 kB / 441.6 MB, free: 13.11 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.001993/0.4033, allocations: 1.365 MB / 443 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003696/0.4037, allocations: 236.9 kB / 443.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003596/0.4073, allocations: 1.85 MB / 445.1 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.317e-05/0.4074, allocations: 16 kB / 445.1 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.4074, allocations: 7.953 kB / 445.1 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/0.4074, allocations: 3.984 kB / 445.1 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008785/0.4162, allocations: 4.816 MB / 449.9 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.313e-06/0.4162, allocations: 0 / 449.9 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006002/0.4168, allocations: 131.8 kB / 450 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001935/0.4188, allocations: 0.6405 MB / 450.7 MB, free: 3.949 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.003e-05/0.4189, allocations: 24.92 kB / 450.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004791/0.4237, allocations: 3.789 MB / 454.5 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.4237, allocations: 8.531 kB / 454.5 MB, free: 0 / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005721/0.4294, allocations: 3.785 MB / 458.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/0.4306, allocations: 445.8 kB / 458.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002474/0.4309, allocations: 16 kB / 458.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008601/0.4318, allocations: 64.53 kB / 458.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/0.4319, allocations: 55.86 kB / 458.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.358e-05/0.432, allocations: 32.56 kB / 458.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002968/0.435, allocations: 1.848 MB / 460.7 MB, free: 9.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.435, allocations: 0 / 460.7 MB, free: 9.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003216/0.4382, allocations: 0.6669 MB / 461.4 MB, free: 9.02 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.006265/0.4445, allocations: 4.718 MB / 466.1 MB, free: 4.254 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005544/0.4501, allocations: 3.403 MB / 469.5 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.4501, allocations: 4 kB / 469.5 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.4513, allocations: 0.9236 MB / 470.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001316/0.4526, allocations: 232.9 kB / 470.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2344/0.6871, allocations: 90.46 MB / 0.548 GB, free: 144.3 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002091/0.6892, allocations: 2.24 MB / 0.5502 GB, free: 143.5 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003058/0.6923, allocations: 1.402 MB / 0.5515 GB, free: 143.4 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001185/0.6935, allocations: 1.055 MB / 0.5526 GB, free: 142.6 MB / 430.1 MB Notification: Performance of SimCode: time 1.523e-06/0.6935, allocations: 3.875 kB / 0.5526 GB, free: 142.6 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05811/0.7516, allocations: 49.24 MB / 0.6007 GB, free: 97.39 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001357/0.7518, allocations: 212.5 kB / 0.6009 GB, free: 97.15 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.321/4.072, allocations: 3.609 kB / 0.6009 GB, free: 97.15 MB / 430.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