Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_3_2_3_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.001031/0.001031, allocations: 96.05 kB / 16.94 MB, free: 6.441 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.0008973/0.0008976, allocations: 184.9 kB / 17.83 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.578/1.578, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004192/0.0004192, allocations: 11.44 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09244/0.09287, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.0358/0.1287, allocations: 36.08 MB / 364.5 MB, free: 15.81 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01931/0.1481, allocations: 9.022 MB / 373.5 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006084/0.1542, allocations: 179.6 kB / 373.7 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005308/0.1595, allocations: 1.773 MB / 375.5 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.216/0.3756, allocations: 5.22 MB / 380.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00335/0.379, allocations: 0.5626 MB / 381.3 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005144/0.3841, allocations: 2.113 MB / 383.4 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007064/0.3912, allocations: 4.168 MB / 387.5 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002251/0.3935, allocations: 0.9875 MB / 388.5 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002136/0.3957, allocations: 1.272 MB / 389.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005637/0.3962, allocations: 138.5 kB / 389.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002025/0.3983, allocations: 0.8689 MB / 390.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001437/0.3997, allocations: 1.487 MB / 392.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008053/0.4005, allocations: 0.8067 MB / 393.1 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005447/0.406, allocations: 5.109 MB / 398.2 MB, free: 8.969 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.406, allocations: 0 / 398.2 MB, free: 8.969 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.118e-06/0.406, allocations: 2.531 kB / 398.2 MB, free: 8.969 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002/0.4062, allocations: 1.75 kB / 398.2 MB, free: 8.969 MB / 318.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.008795/0.415, allocations: 3.825 MB / 402 MB, free: 6.613 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.4151, allocations: 10.5 kB / 402 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001312/0.4164, allocations: 0.7227 MB / 402.8 MB, free: 6.398 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006969/0.4234, allocations: 2.222 MB / 405 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00511/0.4285, allocations: 2.201 MB / 407.2 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002609/0.4288, allocations: 253.2 kB / 407.4 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001381/0.4302, allocations: 398.4 kB / 407.8 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01936/0.4496, allocations: 10.19 MB / 418 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001127/0.4497, allocations: 35.78 kB / 418.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004439/0.4502, allocations: 158.6 kB / 418.2 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002614/0.4528, allocations: 1.856 MB / 420.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01739/0.4702, allocations: 8.442 MB / 428.5 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04836/0.5186, allocations: 39.48 MB / 468 MB, free: 5.598 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01032/0.529, allocations: 4.013 MB / 472 MB, free: 1.449 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01187/0.5409, allocations: 7.686 MB / 479.7 MB, free: 9.352 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.755e-05/0.541, allocations: 58.28 kB / 479.7 MB, free: 9.289 MB / 382.1 MB Notification: Performance of pre-optimization done (n=152): time 5.491e-06/0.541, allocations: 0 / 479.7 MB, free: 9.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=159): time 0.03248/0.5735, allocations: 12.71 MB / 492.5 MB, free: 12.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001322/0.5749, allocations: 1.594 MB / 494 MB, free: 10.63 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005655/0.5806, allocations: 3.93 MB / 498 MB, free: 6.719 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004416/0.581, allocations: 49.7 kB / 498 MB, free: 6.664 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002268/0.5833, allocations: 3.114 MB / 0.4894 GB, free: 3.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009308/0.5843, allocations: 0.6503 MB / 0.49 GB, free: 2.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002456/0.5845, allocations: 120 kB / 0.4901 GB, free: 2.809 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003346/0.5849, allocations: 0.5665 MB / 0.4907 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002981/0.5878, allocations: 2.03 MB / 0.4927 GB, free: 204 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005673/0.5935, allocations: 5.937 MB / 0.4985 GB, free: 8.363 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004806/0.5984, allocations: 3.375 MB / 0.5018 GB, free: 5.113 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.505e-05/0.5984, allocations: 40 kB / 0.5018 GB, free: 5.074 MB / 414.1 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.02177/0.6202, allocations: 9.697 MB / 0.5113 GB, free: 11.63 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.544e-05/0.6203, allocations: 71.95 kB / 0.5113 GB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01111/0.6315, allocations: 3.755 MB / 0.515 GB, free: 7.793 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01144/0.6429, allocations: 2.637 MB / 0.5176 GB, free: 5.137 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004997/0.648, allocations: 1.361 MB / 0.5189 GB, free: 3.773 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01063/0.6587, allocations: 7.49 MB / 0.5262 GB, free: 11.99 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00566/0.6644, allocations: 395.3 kB / 0.5266 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007636/0.6652, allocations: 392 kB / 0.527 GB, free: 11.22 MB / 446.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 (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 32} Notification: Performance of prepare postOptimizeDAE: time 0.003765/0.6689, allocations: 2.013 MB / 0.5289 GB, free: 9.203 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005562/0.6695, allocations: 327.7 kB / 0.5293 GB, free: 8.879 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006266/0.6758, allocations: 3.133 MB / 0.5323 GB, free: 5.715 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005384/0.6812, allocations: 2.675 MB / 0.5349 GB, free: 3.023 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.6812, allocations: 4 kB / 0.5349 GB, free: 3.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.852e-05/0.6812, allocations: 4.172 kB / 0.5349 GB, free: 3.016 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2359/0.9171, allocations: 8.569 MB / 0.5433 GB, free: 156.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.91e-05/0.9172, allocations: 2 kB / 0.5433 GB, free: 156.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.9183, allocations: 193.1 kB / 0.5435 GB, free: 156.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005106/0.9234, allocations: 1.437 MB / 0.5449 GB, free: 156.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00018/0.9236, allocations: 37.45 kB / 0.5449 GB, free: 156.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00604/0.9296, allocations: 5.793 MB / 0.5506 GB, free: 152.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007614/0.9304, allocations: 1.459 MB / 0.552 GB, free: 151.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008685/0.9391, allocations: 5.37 MB / 0.5573 GB, free: 149.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001181/0.9403, allocations: 383.7 kB / 0.5576 GB, free: 149.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004137/0.9408, allocations: 34.3 kB / 0.5577 GB, free: 149.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001294/0.9421, allocations: 130.1 kB / 0.5578 GB, free: 149.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002644/0.9423, allocations: 87.12 kB / 0.5579 GB, free: 149.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/0.9425, allocations: 50.23 kB / 0.5579 GB, free: 149.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003586/0.946, allocations: 2.42 MB / 0.5603 GB, free: 148.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.9461, allocations: 0 / 0.5603 GB, free: 148.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005419/0.9515, allocations: 1.043 MB / 0.5613 GB, free: 148.4 MB / 446.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 (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {6 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.007663/0.9592, allocations: 6.009 MB / 0.5672 GB, free: 145.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008996/0.9682, allocations: 5.428 MB / 0.5725 GB, free: 143.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.9682, allocations: 4 kB / 0.5725 GB, free: 143.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003388/0.9716, allocations: 2.026 MB / 0.5744 GB, free: 142 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001993/0.9736, allocations: 364.2 kB / 0.5748 GB, free: 141.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07974/1.053, allocations: 130.3 MB / 0.7021 GB, free: 8.074 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003871/1.057, allocations: 3.192 MB / 0.7052 GB, free: 4.852 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003862/1.061, allocations: 1.807 MB / 0.7069 GB, free: 3.035 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001869/1.063, allocations: 1.768 MB / 0.7087 GB, free: 1.266 MB / 446.1 MB Notification: Performance of SimCode: time 1.794e-06/1.063, allocations: 0 / 0.7087 GB, free: 1.266 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2886/1.352, allocations: 76.78 MB / 0.7836 GB, free: 101.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001738/1.352, allocations: 236.6 kB / 0.7839 GB, free: 101.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.173/5.525, allocations: 0 / 0.7839 GB, free: 101.2 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat does not exist to compare? outputFormat=mat