Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001018/0.001018, allocations: 99.55 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001176/0.001175, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 227.4 MB / 246 MB, free: 11.96 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2245/0.2245, allocations: 45.91 MB / 344.1 MB, free: 12.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002852/0.0002854, allocations: 15.94 kB / 418.2 MB, free: 20.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1377, allocations: 63.47 MB / 481.6 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring2): time 0.345/0.4827, allocations: 46.14 MB / 0.5154 GB, free: 9.496 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02464/0.5074, allocations: 10.18 MB / 0.5254 GB, free: 8.586 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01045/0.5179, allocations: 221.8 kB / 0.5256 GB, free: 8.547 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00955/0.5275, allocations: 2.381 MB / 0.5279 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0259/0.5535, allocations: 7.172 MB / 0.5349 GB, free: 5.516 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004472/0.558, allocations: 0.8075 MB / 0.5357 GB, free: 5.281 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01052/0.5685, allocations: 6.182 MB / 0.5417 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008212/0.5768, allocations: 4.706 MB / 0.5463 GB, free: 1.648 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004042/0.5809, allocations: 1.523 MB / 0.5478 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00446/0.5853, allocations: 2.452 MB / 0.5502 GB, free: 292 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001217/0.5866, allocations: 172.1 kB / 0.5504 GB, free: 200 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003083/0.5897, allocations: 0.9195 MB / 0.5513 GB, free: 15.33 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003123/0.5928, allocations: 2.059 MB / 0.5533 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002167/0.595, allocations: 0.9479 MB / 0.5542 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008972/0.604, allocations: 6.078 MB / 0.5601 GB, free: 6.422 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.024e-05/0.6041, allocations: 7.938 kB / 0.5601 GB, free: 6.414 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.6041, allocations: 0 / 0.5601 GB, free: 6.414 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002979/0.6044, allocations: 0 / 0.5601 GB, free: 6.414 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1730 * Number of variables: 1730 Notification: Performance of Generate backend data structure: time 0.01433/0.6187, allocations: 4.947 MB / 0.565 GB, free: 1.434 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.525e-05/0.6188, allocations: 8.031 kB / 0.565 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003075/0.6219, allocations: 0.8219 MB / 0.5658 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0106/0.6325, allocations: 2.531 MB / 0.5683 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008867/0.6414, allocations: 3.341 MB / 0.5715 GB, free: 10.74 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000636/0.6421, allocations: 295.9 kB / 0.5718 GB, free: 10.49 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003096/0.6452, allocations: 0.5988 MB / 0.5724 GB, free: 9.945 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0278/0.6731, allocations: 12.16 MB / 0.5843 GB, free: 13.1 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003159/0.6734, allocations: 51.52 kB / 0.5843 GB, free: 13.05 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001608/0.6751, allocations: 180.4 kB / 0.5845 GB, free: 12.91 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003919/0.679, allocations: 2.136 MB / 0.5866 GB, free: 10.79 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02694/0.706, allocations: 10.8 MB / 0.5971 GB, free: 15.97 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07019/0.7762, allocations: 47.61 MB / 0.6436 GB, free: 15.36 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01525/0.7915, allocations: 5.446 MB / 0.6489 GB, free: 9.75 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004056/0.7956, allocations: 2.483 MB / 0.6513 GB, free: 7.25 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02284/0.8185, allocations: 12.3 MB / 0.6634 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.758e-05/0.8186, allocations: 55.88 kB / 0.6634 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=219): time 6.832e-06/0.8186, allocations: 0 / 0.6634 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of matching and sorting (n=258): time 0.07111/0.8898, allocations: 25.47 MB / 0.6883 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003412/0.8932, allocations: 4.568 MB / 0.6927 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008419/0.9017, allocations: 4.539 MB / 0.6972 GB, free: 6.953 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000671/0.9024, allocations: 57.7 kB / 0.6972 GB, free: 6.891 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003067/0.9055, allocations: 3.535 MB / 0.7007 GB, free: 3.363 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001736/0.9072, allocations: 1.016 MB / 0.7017 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001041/0.9083, allocations: 156 kB / 0.7018 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0006558/0.9089, allocations: 0.6205 MB / 0.7024 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00586/0.9148, allocations: 3.189 MB / 0.7055 GB, free: 14.39 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009393/0.9242, allocations: 7.488 MB / 0.7129 GB, free: 4.789 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008018/0.9323, allocations: 4.731 MB / 0.7175 GB, free: 56 kB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001581/0.9325, allocations: 44.19 kB / 0.7175 GB, free: 12 kB / 0.545 GB Notification: Performance of matching and sorting (n=991) (initialization): time 0.3327/1.265, allocations: 13.4 MB / 0.7306 GB, free: 186.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002928/1.266, allocations: 72.77 kB / 0.7307 GB, free: 186.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01898/1.285, allocations: 6.742 MB / 0.7373 GB, free: 184.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01038/1.295, allocations: 3.413 MB / 0.7406 GB, free: 184.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00544/1.3, allocations: 1.708 MB / 0.7423 GB, free: 184 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01727/1.318, allocations: 18.46 MB / 0.7603 GB, free: 170.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007292/1.325, allocations: 0.6456 MB / 0.7609 GB, free: 170.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001886/1.327, allocations: 465.1 kB / 0.7614 GB, free: 169.9 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 688 * Number of states: 0 () * Number of discrete variables: 45 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (910): * Single equations (assignments): 888 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(5,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005455/1.333, allocations: 2.342 MB / 0.7636 GB, free: 167.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001144/1.334, allocations: 422.2 kB / 0.7641 GB, free: 167.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00194/1.336, allocations: 0.619 MB / 0.7647 GB, free: 166.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01251/1.348, allocations: 6.687 MB / 0.7712 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.646e-05/1.348, allocations: 8 kB / 0.7712 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.93e-05/1.348, allocations: 15.95 kB / 0.7712 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03004/1.378, allocations: 15.64 MB / 0.7865 GB, free: 144.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.485e-05/1.378, allocations: 4 kB / 0.7865 GB, free: 144.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00221/1.381, allocations: 462.4 kB / 0.7869 GB, free: 143.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008873/1.39, allocations: 3.395 MB / 0.7902 GB, free: 140.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004821/1.39, allocations: 79.92 kB / 0.7903 GB, free: 140.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.017/1.407, allocations: 19.16 MB / 0.809 GB, free: 120.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00215/1.409, allocations: 4.43 MB / 0.8133 GB, free: 115.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01772/1.427, allocations: 10.9 MB / 0.824 GB, free: 104.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001327/1.428, allocations: 483.5 kB / 0.8245 GB, free: 103.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001327/1.43, allocations: 63.98 kB / 0.8245 GB, free: 103.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003114/1.433, allocations: 312.4 kB / 0.8248 GB, free: 103.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007642/1.434, allocations: 205.5 kB / 0.825 GB, free: 103.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004041/1.434, allocations: 88.5 kB / 0.8251 GB, free: 103.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005526/1.44, allocations: 2.809 MB / 0.8278 GB, free: 100.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.1e-07/1.44, allocations: 0 / 0.8278 GB, free: 100.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00865/1.448, allocations: 1.523 MB / 0.8293 GB, free: 98.86 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],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],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.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 (194): * Single equations (assignments): 178 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(5,100.0%) 8,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01974/1.468, allocations: 11.59 MB / 0.8406 GB, free: 87.06 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01704/1.485, allocations: 9.582 MB / 0.85 GB, free: 77.29 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-05/1.485, allocations: 0 / 0.85 GB, free: 77.29 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008514/1.494, allocations: 4.92 MB / 0.8548 GB, free: 72.16 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004915/1.499, allocations: 0.5445 MB / 0.8553 GB, free: 71.62 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08353/1.582, allocations: 49.32 MB / 0.9035 GB, free: 17.88 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005971/1.588, allocations: 3.694 MB / 0.9071 GB, free: 14.16 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006367/1.595, allocations: 2.229 MB / 0.9093 GB, free: 11.93 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003357/1.598, allocations: 2.288 MB / 0.9115 GB, free: 9.641 MB / 0.545 GB Notification: Performance of SimCode: time 1.713e-06/1.598, allocations: 0 / 0.9115 GB, free: 9.641 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4565/2.055, allocations: 106.3 MB / 1.015 GB, free: 108.4 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001546/2.055, allocations: 205.5 kB / 1.016 GB, free: 108.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.769/6.824, allocations: 0 / 1.016 GB, free: 108.2 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat