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.002372/0.002377, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.639/2.639, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001134/0.001134, allocations: 90.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.956e-05/3.968e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1087, allocations: 47.58 MB / 369.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4484/0.5571, allocations: 92.21 MB / 461.4 MB, free: 1.215 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003172/0.5575, allocations: 86.89 kB / 461.5 MB, free: 1.168 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6672/1.225, allocations: 83.11 MB / 0.5318 GB, free: 90.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.314e-06/1.225, allocations: 0 / 0.5318 GB, free: 90.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000336/1.225, allocations: 73.91 kB / 0.5319 GB, free: 90.8 MB / 410.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.01813/1.243, allocations: 3.966 MB / 0.5358 GB, free: 90.17 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.758e-05/1.243, allocations: 13.75 kB / 0.5358 GB, free: 90.17 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003247/1.247, allocations: 0.66 MB / 0.5364 GB, free: 90.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05048/1.297, allocations: 6.62 MB / 0.5429 GB, free: 89.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02331/1.32, allocations: 5.834 MB / 0.5486 GB, free: 89.33 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004205/1.321, allocations: 267.8 kB / 0.5489 GB, free: 89.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002164/1.323, allocations: 373.3 kB / 0.5492 GB, free: 89.31 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02626/1.349, allocations: 9.039 MB / 0.558 GB, free: 86.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003455/1.35, allocations: 55.41 kB / 0.5581 GB, free: 86.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001681/1.352, allocations: 176.4 kB / 0.5583 GB, free: 86.88 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001861/1.353, allocations: 0.8967 MB / 0.5591 GB, free: 86.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02222/1.376, allocations: 7.485 MB / 0.5664 GB, free: 86.85 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06357/1.439, allocations: 42.3 MB / 0.6078 GB, free: 55.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01382/1.453, allocations: 3.729 MB / 0.6114 GB, free: 53.63 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003909/1.457, allocations: 1.935 MB / 0.6133 GB, free: 52.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006004/1.458, allocations: 342.3 kB / 0.6136 GB, free: 52.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.822e-05/1.458, allocations: 47 kB / 0.6137 GB, free: 52.47 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 6.412e-06/1.458, allocations: 0 / 0.6137 GB, free: 52.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=189): time 0.08152/1.539, allocations: 17.21 MB / 0.6305 GB, free: 40.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/1.54, allocations: 256.6 kB / 0.6307 GB, free: 40.48 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008835/1.548, allocations: 3.448 MB / 0.6341 GB, free: 37.39 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005918/1.549, allocations: 53.7 kB / 0.6341 GB, free: 37.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002487/1.552, allocations: 2.731 MB / 0.6368 GB, free: 34.84 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001122/1.553, allocations: 0.7251 MB / 0.6375 GB, free: 34.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005922/1.553, allocations: 104 kB / 0.6376 GB, free: 34.11 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003413/1.554, allocations: 0.5408 MB / 0.6381 GB, free: 33.62 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004851/1.559, allocations: 2.041 MB / 0.6401 GB, free: 31.78 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007035/1.566, allocations: 5.28 MB / 0.6453 GB, free: 25.17 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007299/1.573, allocations: 3.269 MB / 0.6485 GB, free: 22.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.616e-05/1.573, allocations: 35.94 kB / 0.6485 GB, free: 22.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.02416/1.597, allocations: 8.191 MB / 0.6565 GB, free: 15.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001029/1.598, allocations: 56 kB / 0.6566 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001718/1.598, allocations: 112.8 kB / 0.6567 GB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006883/1.605, allocations: 1.383 MB / 0.658 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007572/1.612, allocations: 1.236 MB / 0.6592 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01809/1.63, allocations: 8.389 MB / 0.6674 GB, free: 3.977 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006927/1.637, allocations: 311.4 kB / 0.6677 GB, free: 3.672 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001352/1.639, allocations: 332 kB / 0.668 GB, free: 3.348 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 519 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (653): * Single equations (assignments): 649 * 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 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001289/1.64, allocations: 0.5243 MB / 0.6685 GB, free: 2.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/1.641, allocations: 355.4 kB / 0.6689 GB, free: 2.469 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01294/1.654, allocations: 3.89 MB / 0.6727 GB, free: 14.56 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.056e-05/1.654, allocations: 20 kB / 0.6727 GB, free: 14.54 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.128e-05/1.654, allocations: 11.56 kB / 0.6727 GB, free: 14.54 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.915e-05/1.654, allocations: 7.969 kB / 0.6727 GB, free: 14.53 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02982/1.684, allocations: 8.913 MB / 0.6814 GB, free: 5.566 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.185e-05/1.684, allocations: 0 / 0.6814 GB, free: 5.566 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002675/1.687, allocations: 255.6 kB / 0.6817 GB, free: 5.316 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006939/1.694, allocations: 1.224 MB / 0.6829 GB, free: 4.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005061/1.694, allocations: 32 kB / 0.6829 GB, free: 4.059 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3253/2.02, allocations: 7.536 MB / 0.6902 GB, free: 94.36 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/2.02, allocations: 4.594 kB / 0.6903 GB, free: 94.36 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02117/2.041, allocations: 6.763 MB / 0.6969 GB, free: 93.72 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002987/2.044, allocations: 0.6795 MB / 0.6975 GB, free: 93.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001373/2.045, allocations: 36.44 kB / 0.6976 GB, free: 93.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00366/2.049, allocations: 111.9 kB / 0.6977 GB, free: 93.62 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008646/2.05, allocations: 111.8 kB / 0.6978 GB, free: 93.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002753/2.05, allocations: 48.95 kB / 0.6978 GB, free: 93.62 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007905/2.058, allocations: 2.431 MB / 0.7002 GB, free: 93.42 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.22e-07/2.058, allocations: 1.312 kB / 0.7002 GB, free: 93.42 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007669/2.066, allocations: 1.004 MB / 0.7012 GB, free: 93.42 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (135): * Single equations (assignments): 131 * 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.01885/2.085, allocations: 7.696 MB / 0.7087 GB, free: 92.02 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01175/2.097, allocations: 5.122 MB / 0.7137 GB, free: 91.84 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/2.097, allocations: 0 / 0.7137 GB, free: 91.84 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005302/2.102, allocations: 1.949 MB / 0.7156 GB, free: 91.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004078/2.106, allocations: 451.6 kB / 0.716 GB, free: 91.68 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03071/2.137, allocations: 9.279 MB / 0.7251 GB, free: 88.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006923/2.144, allocations: 3.178 MB / 0.7282 GB, free: 87.37 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004395/2.148, allocations: 1.815 MB / 0.73 GB, free: 85.95 MB / 426.7 MB Notification: Performance of SimCode: time 1.363e-06/2.148, allocations: 0 / 0.73 GB, free: 85.95 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.275/6.424, allocations: 94.86 MB / 0.8226 GB, free: 15.75 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