Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.DoublePendulum,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",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.002302/0.002302, allocations: 182.8 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.985/1.985, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001183/0.001183, allocations: 101.7 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000383/0.0003832, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3482/0.3486, allocations: 47.58 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.04084/0.3895, allocations: 32.81 MB / 407.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02131/0.4109, allocations: 8.516 MB / 416 MB, free: 7.406 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00635/0.4173, allocations: 167.6 kB / 416.1 MB, free: 7.242 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005215/0.4225, allocations: 1.61 MB / 417.7 MB, free: 5.625 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01634/0.4389, allocations: 4.893 MB / 422.6 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003101/0.442, allocations: 0.624 MB / 423.3 MB, free: 100 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.07001/0.512, allocations: 26.25 MB / 449.5 MB, free: 5.816 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007176/0.5193, allocations: 3.48 MB / 453 MB, free: 2.285 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002154/0.5215, allocations: 1.036 MB / 454 MB, free: 1.246 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002664/0.5242, allocations: 1.41 MB / 455.4 MB, free: 15.83 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005887/0.5248, allocations: 128 kB / 455.6 MB, free: 15.7 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002485/0.5273, allocations: 0.9012 MB / 456.5 MB, free: 14.8 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002287/0.5296, allocations: 1.543 MB / 458 MB, free: 13.25 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001182/0.5308, allocations: 0.7882 MB / 458.8 MB, free: 12.46 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008623/0.5394, allocations: 5.418 MB / 464.2 MB, free: 7.027 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.5395, allocations: 0 / 464.2 MB, free: 7.027 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.5395, allocations: 0 / 464.2 MB, free: 7.027 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001552/0.5397, allocations: 4 kB / 464.2 MB, free: 7.023 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01796/0.5576, allocations: 4.269 MB / 468.5 MB, free: 2.684 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.5577, allocations: 8.031 kB / 468.5 MB, free: 2.676 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002084/0.5598, allocations: 0.6243 MB / 469.1 MB, free: 2.043 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3361/0.8959, allocations: 14.47 MB / 483.6 MB, free: 3.555 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01315/0.9091, allocations: 3.711 MB / 487.3 MB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000326/0.9095, allocations: 200.9 kB / 487.5 MB, free: 15.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001458/0.911, allocations: 267.8 kB / 487.8 MB, free: 15.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0245/0.9355, allocations: 8.804 MB / 496.6 MB, free: 5.871 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002155/0.9357, allocations: 43.64 kB / 496.6 MB, free: 5.828 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006068/0.9363, allocations: 127.9 kB / 496.7 MB, free: 5.703 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005828/0.9422, allocations: 1.77 MB / 498.5 MB, free: 3.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2933/1.236, allocations: 7.612 MB / 0.4942 GB, free: 107.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05597/1.292, allocations: 35.65 MB / 0.5291 GB, free: 79.17 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01259/1.304, allocations: 3.766 MB / 0.5327 GB, free: 75.26 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004957/1.305, allocations: 327.5 kB / 0.5331 GB, free: 74.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.851e-05/1.305, allocations: 51.56 kB / 0.5331 GB, free: 74.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=160): time 5.991e-06/1.305, allocations: 0 / 0.5331 GB, free: 74.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=190): time 0.08599/1.391, allocations: 20.89 MB / 0.5535 GB, free: 53.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.898e-05/1.391, allocations: 259 kB / 0.5538 GB, free: 53.51 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006664/1.398, allocations: 4.209 MB / 0.5579 GB, free: 49.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004654/1.398, allocations: 49.7 kB / 0.5579 GB, free: 49.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001766/1.4, allocations: 2.716 MB / 0.5606 GB, free: 46.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008764/1.401, allocations: 0.7223 MB / 0.5613 GB, free: 45.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003734/1.401, allocations: 104 kB / 0.5614 GB, free: 45.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002851/1.401, allocations: 0.5459 MB / 0.5619 GB, free: 45.13 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004431/1.406, allocations: 2.146 MB / 0.564 GB, free: 42.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005952/1.412, allocations: 5.356 MB / 0.5692 GB, free: 36.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006691/1.419, allocations: 3.341 MB / 0.5725 GB, free: 32.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-05/1.419, allocations: 36 kB / 0.5725 GB, free: 32.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.02133/1.44, allocations: 8.45 MB / 0.5808 GB, free: 24.17 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.545e-05/1.44, allocations: 55.94 kB / 0.5808 GB, free: 24.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001085/1.44, allocations: 112 kB / 0.5809 GB, free: 24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006824/1.447, allocations: 1.531 MB / 0.5824 GB, free: 22.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006984/1.454, allocations: 1.22 MB / 0.5836 GB, free: 21.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01904/1.473, allocations: 9.484 MB / 0.5929 GB, free: 11.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00587/1.479, allocations: 323.5 kB / 0.5932 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006918/1.48, allocations: 339.8 kB / 0.5935 GB, free: 10.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * Number of states: 0 () * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (650): * Single equations (assignments): 646 * 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,88.9%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003764/1.484, allocations: 1.936 MB / 0.5954 GB, free: 9.035 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008397/1.484, allocations: 355.3 kB / 0.5957 GB, free: 8.684 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01172/1.496, allocations: 4.155 MB / 0.5998 GB, free: 4.508 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.294e-05/1.496, allocations: 20 kB / 0.5998 GB, free: 4.488 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/1.496, allocations: 8 kB / 0.5998 GB, free: 4.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.959e-05/1.496, allocations: 11.97 kB / 0.5998 GB, free: 4.469 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02593/1.522, allocations: 9.334 MB / 0.609 GB, free: 11.08 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.373e-05/1.522, allocations: 4.016 kB / 0.609 GB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002565/1.525, allocations: 267.6 kB / 0.6092 GB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007112/1.532, allocations: 1.348 MB / 0.6105 GB, free: 9.461 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003239/1.532, allocations: 28 kB / 0.6106 GB, free: 9.434 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02125/1.554, allocations: 8.624 MB / 0.619 GB, free: 0.6758 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/1.554, allocations: 4 kB / 0.619 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0198/1.574, allocations: 7.143 MB / 0.626 GB, free: 9.461 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002601/1.576, allocations: 0.7189 MB / 0.6267 GB, free: 8.719 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006635/1.577, allocations: 32.89 kB / 0.6267 GB, free: 8.688 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002661/1.58, allocations: 115.8 kB / 0.6268 GB, free: 8.574 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005998/1.58, allocations: 109.2 kB / 0.6269 GB, free: 8.469 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002272/1.58, allocations: 48.92 kB / 0.627 GB, free: 8.422 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006144/1.587, allocations: 2.709 MB / 0.6296 GB, free: 5.699 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.082e-06/1.587, allocations: 0 / 0.6296 GB, free: 5.699 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006746/1.593, allocations: 1.03 MB / 0.6306 GB, free: 4.676 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (136): * Single equations (assignments): 132 * 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 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02172/1.615, allocations: 8.097 MB / 0.6385 GB, free: 12.52 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01452/1.63, allocations: 5.346 MB / 0.6437 GB, free: 7.191 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.654e-06/1.63, allocations: 0 / 0.6437 GB, free: 7.191 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006168/1.636, allocations: 2.066 MB / 0.6458 GB, free: 5.117 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00372/1.64, allocations: 455.4 kB / 0.6462 GB, free: 4.668 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3757/2.015, allocations: 113.7 MB / 0.7572 GB, free: 49.25 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004123/2.02, allocations: 3.185 MB / 0.7603 GB, free: 46.03 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003549/2.023, allocations: 1.8 MB / 0.7621 GB, free: 44.23 MB / 426.7 MB Notification: Performance of SimCode: time 1.744e-06/2.023, allocations: 0 / 0.7621 GB, free: 44.23 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.279/6.303, allocations: 95.84 MB / 0.8557 GB, free: 98.41 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat