Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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.ThreeSprings,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",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.001106/0.001106, allocations: 103.8 kB / 17.06 MB, free: 6.016 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.001239/0.001239, allocations: 195 kB / 18 MB, free: 5.094 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.411/1.411, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 44.06 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.3139, allocations: 49.45 MB / 400.2 MB, free: 8.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.01302/0.3269, allocations: 10.73 MB / 411 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008798/0.3358, allocations: 3.924 MB / 414.9 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002234/0.3381, allocations: 67.75 kB / 415 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006024/0.3442, allocations: 2.589 MB / 417.6 MB, free: 7.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006041/0.3503, allocations: 1.751 MB / 419.3 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002614/0.353, allocations: 0.6902 MB / 420 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006828/0.3598, allocations: 3.689 MB / 423.7 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006458/0.3663, allocations: 3.552 MB / 427.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003676/0.3701, allocations: 1.479 MB / 428.7 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004009/0.3741, allocations: 1.954 MB / 430.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001398/0.3756, allocations: 316 kB / 431 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004068/0.3797, allocations: 1.163 MB / 432.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003844/0.3836, allocations: 1.843 MB / 434 MB, free: 6.996 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006029/0.3896, allocations: 2.14 MB / 436.1 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01264/0.4023, allocations: 6.699 MB / 442.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.553e-05/0.4024, allocations: 0 / 442.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.649e-06/0.4024, allocations: 0 / 442.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003967/0.4028, allocations: 0 / 442.8 MB, free: 14.12 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.01397/0.4168, allocations: 4.585 MB / 447.4 MB, free: 9.469 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.4169, allocations: 8.031 kB / 447.4 MB, free: 9.461 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001969/0.4189, allocations: 0.7236 MB / 448.1 MB, free: 8.727 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00751/0.4264, allocations: 1.886 MB / 450 MB, free: 6.832 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006052/0.4325, allocations: 2.34 MB / 452.4 MB, free: 4.445 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002335/0.4328, allocations: 242.2 kB / 452.6 MB, free: 4.207 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00146/0.4343, allocations: 391.8 kB / 453 MB, free: 3.824 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02088/0.4551, allocations: 10.07 MB / 463.1 MB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001246/0.4553, allocations: 39.59 kB / 463.1 MB, free: 9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005469/0.4559, allocations: 151.9 kB / 463.2 MB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002901/0.4588, allocations: 1.868 MB / 465.1 MB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02046/0.4793, allocations: 8.32 MB / 473.4 MB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05671/0.536, allocations: 39.22 MB / 0.5006 GB, free: 6.285 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01092/0.547, allocations: 3.993 MB / 0.5045 GB, free: 2.141 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002255/0.5493, allocations: 1.42 MB / 0.5059 GB, free: 0.707 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01384/0.5632, allocations: 7.592 MB / 0.5133 GB, free: 8.633 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.013e-05/0.5633, allocations: 47.56 kB / 0.5134 GB, free: 8.578 MB / 446.1 MB Notification: Performance of pre-optimization done (n=152): time 6.492e-06/0.5633, allocations: 7.938 kB / 0.5134 GB, free: 8.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.03482/0.5981, allocations: 12.38 MB / 0.5255 GB, free: 11.98 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001709/0.5999, allocations: 1.691 MB / 0.5271 GB, free: 10.11 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006797/0.6067, allocations: 3.816 MB / 0.5309 GB, free: 6.309 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003793/0.6071, allocations: 49.7 kB / 0.5309 GB, free: 6.254 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003003/0.6101, allocations: 3.118 MB / 0.5339 GB, free: 3.09 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001058/0.6112, allocations: 0.6443 MB / 0.5346 GB, free: 2.438 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001925/0.6132, allocations: 1.257 MB / 0.5358 GB, free: 1.168 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.6133, allocations: 301.1 kB / 0.5361 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2333/0.8466, allocations: 2.002 MB / 0.538 GB, free: 130.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006339/0.853, allocations: 5.943 MB / 0.5439 GB, free: 124.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008354/0.8614, allocations: 8.564 MB / 0.5522 GB, free: 117.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001166/0.8616, allocations: 45.03 kB / 0.5523 GB, free: 117.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.01628/0.8779, allocations: 8.767 MB / 0.5608 GB, free: 113.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/0.878, allocations: 64.97 kB / 0.5609 GB, free: 113.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005643/0.8837, allocations: 2.797 MB / 0.5636 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004889/0.8886, allocations: 1.531 MB / 0.5651 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004131/0.8928, allocations: 1.356 MB / 0.5664 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005013/0.8978, allocations: 5.813 MB / 0.5721 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004805/0.9027, allocations: 387.7 kB / 0.5725 GB, free: 102.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008786/0.9036, allocations: 386.1 kB / 0.5728 GB, free: 102.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (738): * Single equations (assignments): 728 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,29)} Notification: Performance of prepare postOptimizeDAE: time 0.003308/0.9069, allocations: 2.009 MB / 0.5748 GB, free: 100.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006842/0.9076, allocations: 322.8 kB / 0.5751 GB, free: 100.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005829/0.9134, allocations: 3.126 MB / 0.5782 GB, free: 96.96 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004932/0.9184, allocations: 2.687 MB / 0.5808 GB, free: 94.25 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.775e-05/0.9184, allocations: 7.938 kB / 0.5808 GB, free: 94.25 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.553e-05/0.9185, allocations: 7.969 kB / 0.5808 GB, free: 94.24 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0151/0.9336, allocations: 8.551 MB / 0.5892 GB, free: 85.65 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.746e-05/0.9336, allocations: 0 / 0.5892 GB, free: 85.65 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009586/0.9346, allocations: 195.7 kB / 0.5893 GB, free: 85.46 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004236/0.9388, allocations: 1.436 MB / 0.5907 GB, free: 84 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002119/0.9391, allocations: 35.98 kB / 0.5908 GB, free: 83.97 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005046/0.9441, allocations: 6.007 MB / 0.5966 GB, free: 77.71 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000761/0.9449, allocations: 1.539 MB / 0.5982 GB, free: 76.03 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007825/0.9528, allocations: 5.319 MB / 0.6033 GB, free: 70.79 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00103/0.9539, allocations: 372.7 kB / 0.6037 GB, free: 70.41 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004505/0.9543, allocations: 28 kB / 0.6037 GB, free: 70.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001373/0.9557, allocations: 119.8 kB / 0.6038 GB, free: 70.26 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002345/0.956, allocations: 96.92 kB / 0.6039 GB, free: 70.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/0.9561, allocations: 51.81 kB / 0.604 GB, free: 70.12 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003401/0.9595, allocations: 2.345 MB / 0.6063 GB, free: 67.79 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.9595, allocations: 0 / 0.6063 GB, free: 67.79 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005375/0.9649, allocations: 1.003 MB / 0.6073 GB, free: 66.79 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * 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 (91): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007563/0.9725, allocations: 5.779 MB / 0.6129 GB, free: 60.97 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009192/0.9818, allocations: 5.444 MB / 0.6182 GB, free: 55.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/0.9818, allocations: 0 / 0.6182 GB, free: 55.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003568/0.9854, allocations: 2.032 MB / 0.6202 GB, free: 53.39 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002752/0.9882, allocations: 403.4 kB / 0.6206 GB, free: 53 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06111/1.049, allocations: 45.23 MB / 0.6647 GB, free: 1.602 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003611/1.053, allocations: 3.11 MB / 0.6678 GB, free: 14.46 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004137/1.057, allocations: 1.803 MB / 0.6695 GB, free: 12.64 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002614/1.06, allocations: 1.768 MB / 0.6713 GB, free: 10.88 MB / 478.1 MB Notification: Performance of SimCode: time 1.052e-06/1.06, allocations: 0 / 0.6713 GB, free: 10.88 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3641/1.424, allocations: 67.13 MB / 0.7368 GB, free: 180.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.14/25.57, allocations: 9.922 kB / 0.7368 GB, free: 180.2 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1)