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.001526/0.001526, allocations: 113.2 kB / 17.06 MB, free: 6.004 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.001876/0.001876, allocations: 198.9 kB / 18 MB, free: 5.082 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.278/1.278, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009402/0.0009402, allocations: 47.94 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.239, allocations: 49.43 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.01067/0.2497, allocations: 10.74 MB / 411 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006759/0.2565, allocations: 3.927 MB / 414.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009878/0.2575, allocations: 63.75 kB / 415 MB, free: 10 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004127/0.2617, allocations: 2.581 MB / 417.6 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00343/0.2652, allocations: 1.747 MB / 419.3 MB, free: 5.656 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001299/0.2665, allocations: 0.6902 MB / 420 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004137/0.2706, allocations: 3.698 MB / 423.7 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00385/0.2745, allocations: 3.552 MB / 427.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001849/0.2764, allocations: 1.472 MB / 428.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002158/0.2785, allocations: 1.958 MB / 430.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005207/0.2791, allocations: 316 kB / 431 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001876/0.281, allocations: 1.174 MB / 432.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001558/0.2825, allocations: 1.835 MB / 434 MB, free: 6.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001971/0.2845, allocations: 2.144 MB / 436.1 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006618/0.2911, allocations: 6.699 MB / 442.8 MB, free: 14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.2912, allocations: 0 / 442.8 MB, free: 14 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2912, allocations: 0 / 442.8 MB, free: 14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001714/0.2914, allocations: 0 / 442.8 MB, free: 14 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.007855/0.2992, allocations: 4.588 MB / 447.4 MB, free: 9.344 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.2993, allocations: 8.031 kB / 447.4 MB, free: 9.336 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008655/0.3002, allocations: 0.7236 MB / 448.2 MB, free: 8.602 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006169/0.3063, allocations: 1.883 MB / 450 MB, free: 6.711 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00411/0.3105, allocations: 2.328 MB / 452.4 MB, free: 4.336 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001807/0.3107, allocations: 250.2 kB / 452.6 MB, free: 4.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008006/0.3115, allocations: 395.7 kB / 453 MB, free: 3.703 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01705/0.3285, allocations: 10.06 MB / 463.1 MB, free: 8.922 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001353/0.3287, allocations: 47.53 kB / 463.1 MB, free: 8.875 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008077/0.3295, allocations: 151.9 kB / 463.3 MB, free: 8.727 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002677/0.3322, allocations: 1.857 MB / 465.1 MB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01606/0.3483, allocations: 8.324 MB / 473.4 MB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04609/0.3944, allocations: 39.21 MB / 0.5006 GB, free: 6.191 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009912/0.4043, allocations: 4 MB / 0.5045 GB, free: 2.039 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001965/0.4063, allocations: 1.439 MB / 0.5059 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01063/0.417, allocations: 7.584 MB / 0.5133 GB, free: 8.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.471e-05/0.4171, allocations: 55.48 kB / 0.5134 GB, free: 8.457 MB / 446.1 MB Notification: Performance of pre-optimization done (n=152): time 4.378e-06/0.4171, allocations: 7.938 kB / 0.5134 GB, free: 8.449 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.03151/0.4486, allocations: 12.37 MB / 0.5255 GB, free: 11.88 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001227/0.4498, allocations: 1.683 MB / 0.5271 GB, free: 10.02 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005916/0.4558, allocations: 3.82 MB / 0.5309 GB, free: 6.211 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001722/0.456, allocations: 49.7 kB / 0.5309 GB, free: 6.156 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002106/0.4581, allocations: 3.114 MB / 0.5339 GB, free: 2.996 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007203/0.4588, allocations: 0.6482 MB / 0.5346 GB, free: 2.34 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001797/0.4606, allocations: 1.253 MB / 0.5358 GB, free: 1.074 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.479e-05/0.4607, allocations: 301.1 kB / 0.5361 GB, free: 0.7773 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1824/0.6431, allocations: 2.001 MB / 0.538 GB, free: 130.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004366/0.6475, allocations: 5.95 MB / 0.5439 GB, free: 124.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006178/0.6537, allocations: 8.568 MB / 0.5522 GB, free: 117 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.445e-05/0.6538, allocations: 44.72 kB / 0.5523 GB, free: 117 MB / 462.1 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.0125/0.6663, allocations: 8.767 MB / 0.5608 GB, free: 113.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.228e-05/0.6664, allocations: 68 kB / 0.5609 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004854/0.6713, allocations: 2.792 MB / 0.5636 GB, free: 111.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004188/0.6755, allocations: 1.537 MB / 0.5651 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003295/0.6788, allocations: 1.366 MB / 0.5664 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004288/0.6831, allocations: 5.796 MB / 0.5721 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003922/0.687, allocations: 391.4 kB / 0.5725 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005763/0.6876, allocations: 388 kB / 0.5729 GB, free: 102.1 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.002586/0.6902, allocations: 2.004 MB / 0.5748 GB, free: 100.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005614/0.6908, allocations: 333.5 kB / 0.5751 GB, free: 100 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005504/0.6963, allocations: 3.121 MB / 0.5782 GB, free: 96.85 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004601/0.7009, allocations: 2.683 MB / 0.5808 GB, free: 94.15 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/0.7009, allocations: 11.92 kB / 0.5808 GB, free: 94.14 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/0.701, allocations: 4.359 kB / 0.5808 GB, free: 94.13 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01236/0.7133, allocations: 8.555 MB / 0.5892 GB, free: 85.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.7134, allocations: 0 / 0.5892 GB, free: 85.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008017/0.7142, allocations: 191.7 kB / 0.5893 GB, free: 85.35 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003985/0.7182, allocations: 1.44 MB / 0.5908 GB, free: 83.89 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000138/0.7183, allocations: 39.97 kB / 0.5908 GB, free: 83.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00453/0.7229, allocations: 6.002 MB / 0.5967 GB, free: 77.59 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006226/0.7235, allocations: 1.542 MB / 0.5982 GB, free: 75.91 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006806/0.7303, allocations: 5.306 MB / 0.6033 GB, free: 70.69 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006262/0.731, allocations: 380.6 kB / 0.6037 GB, free: 70.29 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003175/0.7313, allocations: 28 kB / 0.6037 GB, free: 70.27 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/0.7324, allocations: 119.8 kB / 0.6038 GB, free: 70.15 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001945/0.7326, allocations: 92.78 kB / 0.6039 GB, free: 70.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.639e-05/0.7328, allocations: 51.98 kB / 0.604 GB, free: 70 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00249/0.7352, allocations: 2.341 MB / 0.6063 GB, free: 67.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.7353, allocations: 0 / 0.6063 GB, free: 67.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003757/0.739, allocations: 1.003 MB / 0.6072 GB, free: 66.68 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.006176/0.7452, allocations: 5.79 MB / 0.6129 GB, free: 60.86 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007039/0.7523, allocations: 5.431 MB / 0.6182 GB, free: 55.39 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.493e-06/0.7523, allocations: 4.062 kB / 0.6182 GB, free: 55.39 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002987/0.7553, allocations: 2.038 MB / 0.6202 GB, free: 53.29 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002173/0.7575, allocations: 402.8 kB / 0.6206 GB, free: 52.89 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04735/0.8048, allocations: 45.21 MB / 0.6647 GB, free: 1.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002644/0.8075, allocations: 3.107 MB / 0.6678 GB, free: 14.36 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003501/0.811, allocations: 1.8 MB / 0.6695 GB, free: 12.55 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001957/0.813, allocations: 1.772 MB / 0.6713 GB, free: 10.77 MB / 478.1 MB Notification: Performance of SimCode: time 6.42e-07/0.813, allocations: 0 / 0.6713 GB, free: 10.77 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9544/1.767, allocations: 67.14 MB / 0.7368 GB, free: 180.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.97/22.73, allocations: 1.719 kB / 0.7368 GB, free: 180.1 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)