Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum",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.001031/0.001031, allocations: 88.53 kB / 16.31 MB, free: 6.449 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.001204/0.001204, allocations: 183.1 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.2 MB / 241.2 MB, free: 5.312 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002644/0.0002647, allocations: 8.719 kB / 300.9 MB, free: 5.645 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1046, allocations: 50.42 MB / 351.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03167/0.1364, allocations: 34.75 MB / 386.1 MB, free: 8.574 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01765/0.1541, allocations: 8.185 MB / 394.3 MB, free: 372 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005877/0.16, allocations: 167.6 kB / 394.4 MB, free: 204 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00506/0.1651, allocations: 1.773 MB / 396.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01441/0.1795, allocations: 5.502 MB / 401.7 MB, free: 8.895 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002742/0.1823, allocations: 0.6358 MB / 402.4 MB, free: 8.258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.3106/0.4928, allocations: 60.72 MB / 463.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005561/0.4985, allocations: 3.499 MB / 466.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002553/0.5011, allocations: 1.244 MB / 467.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002862/0.5039, allocations: 1.974 MB / 469.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005816/0.5045, allocations: 132 kB / 469.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001785/0.5063, allocations: 0.9377 MB / 470.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00141/0.5078, allocations: 1.641 MB / 472.5 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008862/0.5087, allocations: 0.7824 MB / 473.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004614/0.5133, allocations: 5.409 MB / 478.7 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.5133, allocations: 4 kB / 478.7 MB, free: 4.039 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5133, allocations: 4 kB / 478.7 MB, free: 4.035 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001631/0.5135, allocations: 0 / 478.7 MB, free: 4.035 MB / 350.1 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.01027/0.5238, allocations: 4.144 MB / 482.8 MB, free: 196 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.5238, allocations: 8.031 kB / 482.8 MB, free: 188 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002188/0.526, allocations: 0.6247 MB / 483.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1261/0.6522, allocations: 12.6 MB / 496.1 MB, free: 3.598 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008812/0.661, allocations: 3.79 MB / 499.9 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000186/0.6613, allocations: 200.7 kB / 0.4883 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007647/0.662, allocations: 270.6 kB / 0.4886 GB, free: 0.5938 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01577/0.6778, allocations: 8.737 MB / 0.4971 GB, free: 9.656 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001404/0.678, allocations: 47.14 kB / 0.4972 GB, free: 9.629 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003587/0.6784, allocations: 126.2 kB / 0.4973 GB, free: 9.594 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002962/0.6813, allocations: 1.767 MB / 0.499 GB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01503/0.6964, allocations: 7.517 MB / 0.5064 GB, free: 2.875 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04452/0.7409, allocations: 35.51 MB / 0.541 GB, free: 1.516 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0079/0.7489, allocations: 3.684 MB / 0.5446 GB, free: 13.7 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002923/0.7519, allocations: 2.033 MB / 0.5466 GB, free: 11.66 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004762/0.7524, allocations: 326.9 kB / 0.5469 GB, free: 11.29 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.691e-05/0.7524, allocations: 57.91 kB / 0.547 GB, free: 11.23 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 6.833e-06/0.7524, allocations: 0 / 0.547 GB, free: 11.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.05063/0.8031, allocations: 20.02 MB / 0.5665 GB, free: 7.168 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001962/0.8033, allocations: 248.6 kB / 0.5668 GB, free: 6.867 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005726/0.8091, allocations: 3.926 MB / 0.5706 GB, free: 2.914 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004431/0.8095, allocations: 53.7 kB / 0.5707 GB, free: 2.855 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002218/0.8118, allocations: 2.825 MB / 0.5734 GB, free: 48 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001082/0.8128, allocations: 0.7198 MB / 0.5741 GB, free: 15.33 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002432/0.8131, allocations: 108 kB / 0.5742 GB, free: 15.23 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003329/0.8134, allocations: 0.5373 MB / 0.5747 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003224/0.8167, allocations: 2.145 MB / 0.5768 GB, free: 12.54 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005688/0.8224, allocations: 5.378 MB / 0.5821 GB, free: 5.59 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005873/0.8283, allocations: 3.336 MB / 0.5854 GB, free: 2.348 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001031/0.8284, allocations: 36 kB / 0.5854 GB, free: 2.312 MB / 462.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.268/1.096, allocations: 8.595 MB / 0.5938 GB, free: 159.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/1.097, allocations: 56.27 kB / 0.5938 GB, free: 159.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001889/1.097, allocations: 113.1 kB / 0.5939 GB, free: 159.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004488/1.101, allocations: 1.52 MB / 0.5954 GB, free: 159.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004438/1.106, allocations: 1.229 MB / 0.5966 GB, free: 159.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01182/1.118, allocations: 9.168 MB / 0.6056 GB, free: 157.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004655/1.122, allocations: 320.8 kB / 0.6059 GB, free: 157.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005984/1.123, allocations: 334.9 kB / 0.6062 GB, free: 157.7 MB / 462.1 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.003092/1.126, allocations: 1.935 MB / 0.6081 GB, free: 156.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005806/1.127, allocations: 353.2 kB / 0.6084 GB, free: 156.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006455/1.133, allocations: 4.143 MB / 0.6125 GB, free: 155.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.953e-05/1.133, allocations: 21.25 kB / 0.6125 GB, free: 155.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.441e-05/1.133, allocations: 7.875 kB / 0.6125 GB, free: 155.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.504e-05/1.133, allocations: 11.62 kB / 0.6125 GB, free: 155.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01348/1.147, allocations: 9.302 MB / 0.6216 GB, free: 149.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/1.147, allocations: 0 / 0.6216 GB, free: 149.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001121/1.148, allocations: 271.5 kB / 0.6219 GB, free: 148.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003159/1.151, allocations: 1.35 MB / 0.6232 GB, free: 147.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001548/1.151, allocations: 28 kB / 0.6232 GB, free: 147.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009142/1.16, allocations: 8.313 MB / 0.6313 GB, free: 139.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/1.16, allocations: 6.578 kB / 0.6313 GB, free: 139.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009001/1.169, allocations: 7.02 MB / 0.6382 GB, free: 132.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001169/1.17, allocations: 412.4 kB / 0.6386 GB, free: 131.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004413/1.171, allocations: 31.83 kB / 0.6386 GB, free: 131.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001346/1.172, allocations: 123.8 kB / 0.6387 GB, free: 131.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003553/1.173, allocations: 105.2 kB / 0.6388 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001328/1.173, allocations: 48 kB / 0.6389 GB, free: 131.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004003/1.177, allocations: 2.486 MB / 0.6413 GB, free: 128.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.092e-06/1.177, allocations: 0 / 0.6413 GB, free: 128.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005252/1.182, allocations: 1.016 MB / 0.6423 GB, free: 127.9 MB / 462.1 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.009795/1.192, allocations: 7.672 MB / 0.6498 GB, free: 120.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007802/1.2, allocations: 5.349 MB / 0.655 GB, free: 114.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/1.2, allocations: 4 kB / 0.655 GB, free: 114.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002856/1.203, allocations: 2.064 MB / 0.657 GB, free: 112.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002952/1.206, allocations: 473.9 kB / 0.6575 GB, free: 112.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05352/1.259, allocations: 35.18 MB / 0.6918 GB, free: 73.71 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002744/1.262, allocations: 3.082 MB / 0.6948 GB, free: 70.59 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004273/1.266, allocations: 1.831 MB / 0.6966 GB, free: 68.76 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002109/1.268, allocations: 1.753 MB / 0.6983 GB, free: 67.01 MB / 462.1 MB Notification: Performance of SimCode: time 1.704e-06/1.268, allocations: 0 / 0.6983 GB, free: 67.01 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3249/1.593, allocations: 80.31 MB / 0.7768 GB, free: 149.8 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002255/1.594, allocations: 227.1 kB / 0.777 GB, free: 149.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.987/5.581, allocations: 0 / 0.777 GB, free: 149.5 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_DoublePendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat does not exist to compare? outputFormat=mat