Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.conf.json 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) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001748/0.001748, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.615/1.615, allocations: 221.3 MB / 236 MB, free: 2.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009817/0.0009816, allocations: 87.23 kB / 287 MB, free: 200 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.214/0.214, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.314e-05/3.317e-05, allocations: 8.219 kB / 451.9 MB, free: 9.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.13, allocations: 61.92 MB / 0.5018 GB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4266/0.5566, allocations: 104.7 MB / 0.604 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002491/0.5569, allocations: 71.97 kB / 0.6041 GB, free: 0.5156 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2636/0.8205, allocations: 99.7 MB / 0.7014 GB, free: 12.17 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.083e-06/0.8206, allocations: 0 / 0.7014 GB, free: 12.17 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002923/0.8209, allocations: 99.98 kB / 0.7015 GB, free: 12.07 MB / 0.5105 GB 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.02821/0.8491, allocations: 5.922 MB / 0.7073 GB, free: 6.082 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.381e-05/0.8492, allocations: 12.03 kB / 0.7073 GB, free: 6.07 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00362/0.8528, allocations: 0.889 MB / 0.7082 GB, free: 5.172 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01476/0.8676, allocations: 2.93 MB / 0.711 GB, free: 2.23 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3286/1.196, allocations: 6.811 MB / 0.7177 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005228/1.197, allocations: 366 kB / 0.718 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002547/1.199, allocations: 0.4906 MB / 0.7185 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03026/1.23, allocations: 12.45 MB / 0.7307 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004005/1.23, allocations: 76.33 kB / 0.7308 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001405/1.232, allocations: 235.2 kB / 0.731 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00233/1.234, allocations: 1.243 MB / 0.7322 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02273/1.257, allocations: 10.47 MB / 0.7424 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05949/1.316, allocations: 57.97 MB / 0.799 GB, free: 73.73 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01421/1.33, allocations: 5.341 MB / 0.8042 GB, free: 71.89 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00358/1.334, allocations: 2.446 MB / 0.8066 GB, free: 70.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01651/1.351, allocations: 12.3 MB / 0.8186 GB, free: 64.19 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/1.351, allocations: 62.31 kB / 0.8187 GB, free: 64.13 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=219): time 4.479e-06/1.351, allocations: 0 / 0.8187 GB, free: 64.13 MB / 0.5105 GB Notification: Performance of matching and sorting (n=258): time 0.05003/1.401, allocations: 21.13 MB / 0.8393 GB, free: 52.02 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002509/1.403, allocations: 4.609 MB / 0.8438 GB, free: 47.11 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006411/1.41, allocations: 3.972 MB / 0.8477 GB, free: 43.57 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008582/1.411, allocations: 57.7 kB / 0.8478 GB, free: 43.51 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002183/1.413, allocations: 3.518 MB / 0.8512 GB, free: 40.36 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001376/1.414, allocations: 1.025 MB / 0.8522 GB, free: 39.45 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004295/1.415, allocations: 151.8 kB / 0.8524 GB, free: 39.31 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003214/1.415, allocations: 0.626 MB / 0.853 GB, free: 38.77 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003921/1.419, allocations: 3.084 MB / 0.856 GB, free: 36.03 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006317/1.425, allocations: 7.335 MB / 0.8631 GB, free: 27.06 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006329/1.432, allocations: 4.689 MB / 0.8677 GB, free: 23.06 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001074/1.432, allocations: 44 kB / 0.8678 GB, free: 23.02 MB / 0.5105 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.02622/1.458, allocations: 12.96 MB / 0.8804 GB, free: 12.29 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001628/1.458, allocations: 68.22 kB / 0.8805 GB, free: 12.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01395/1.472, allocations: 6.461 MB / 0.8868 GB, free: 6.848 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01066/1.483, allocations: 3.35 MB / 0.8901 GB, free: 3.461 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005861/1.489, allocations: 1.731 MB / 0.8918 GB, free: 1.727 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02046/1.509, allocations: 15.83 MB / 0.9072 GB, free: 1.121 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009172/1.518, allocations: 0.772 MB / 0.908 GB, free: 360 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.3362/1.855, allocations: 452.4 kB / 0.9084 GB, free: 116.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 682 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (906): * Single equations (assignments): 886 * 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: 3 * 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: 3 {(5,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00324/1.858, allocations: 0.6571 MB / 0.909 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00138/1.859, allocations: 417.3 kB / 0.9094 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01829/1.878, allocations: 7.051 MB / 0.9163 GB, free: 116.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0168/1.895, allocations: 6.398 MB / 0.9226 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.918e-05/1.895, allocations: 9.094 kB / 0.9226 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.086e-05/1.895, allocations: 12.11 kB / 0.9226 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03485/1.93, allocations: 15.36 MB / 0.9376 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.877e-05/1.93, allocations: 3.969 kB / 0.9376 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002136/1.932, allocations: 457.4 kB / 0.938 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01001/1.942, allocations: 3.335 MB / 0.9413 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007552/1.943, allocations: 81.56 kB / 0.9414 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01985/1.962, allocations: 16.47 MB / 0.9575 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002712/1.965, allocations: 4.428 MB / 0.9618 GB, free: 102.9 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02159/1.987, allocations: 11.23 MB / 0.9728 GB, free: 98.58 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002035/1.989, allocations: 494.1 kB / 0.9732 GB, free: 98.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0018/1.991, allocations: 72.56 kB / 0.9733 GB, free: 98.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00464/1.995, allocations: 338.8 kB / 0.9736 GB, free: 98.34 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001144/1.997, allocations: 204.1 kB / 0.9738 GB, free: 98.32 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005365/1.997, allocations: 85.75 kB / 0.9739 GB, free: 98.3 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.006546/2.004, allocations: 2.742 MB / 0.9766 GB, free: 97.34 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.32e-07/2.004, allocations: 3.125 kB / 0.9766 GB, free: 97.34 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01087/2.015, allocations: 1.526 MB / 0.9781 GB, free: 97.19 MB / 0.5261 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 182 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(3,100.0%),(4,100.0%),(3,100.0%),(4,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: 3 {(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.02371/2.038, allocations: 13.19 MB / 0.9909 GB, free: 90.98 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01753/2.056, allocations: 9.175 MB / 0.9999 GB, free: 87.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/2.056, allocations: 0 / 0.9999 GB, free: 87.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008809/2.065, allocations: 4.606 MB / 1.004 GB, free: 85.59 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004517/2.069, allocations: 0.5125 MB / 1.005 GB, free: 85.36 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03578/2.105, allocations: 13.19 MB / 1.018 GB, free: 76.54 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005553/2.111, allocations: 3.795 MB / 1.021 GB, free: 73.7 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005973/2.117, allocations: 2.257 MB / 1.024 GB, free: 72.27 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003325/2.12, allocations: 2.271 MB / 1.026 GB, free: 70.18 MB / 0.5261 GB Notification: Performance of SimCode: time 1.352e-06/2.12, allocations: 0 / 1.026 GB, free: 70.18 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4799/2.6, allocations: 106.5 MB / 1.13 GB, free: 121 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001775/2.6, allocations: 184.4 kB / 1.13 GB, free: 120.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.785/8.385, allocations: 4 kB / 1.13 GB, free: 120.8 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat