Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002425/0.002424, allocations: 182.2 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.296/2.296, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001639/0.001639, allocations: 94.05 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5329/0.5329, allocations: 43.55 MB / 362.7 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005031/0.0005033, allocations: 16 kB / 431.5 MB, free: 6.055 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1346, allocations: 58.84 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring2): time 0.3829/0.5175, allocations: 43.59 MB / 0.5214 GB, free: 19.53 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02896/0.5466, allocations: 10.61 MB / 0.5317 GB, free: 12.34 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01014/0.5568, allocations: 218.5 kB / 0.5319 GB, free: 12.3 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008266/0.5651, allocations: 2.14 MB / 0.534 GB, free: 11.6 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02306/0.5882, allocations: 6.33 MB / 0.5402 GB, free: 8.59 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00432/0.5926, allocations: 0.7956 MB / 0.541 GB, free: 8.281 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006885/0.5995, allocations: 3.062 MB / 0.544 GB, free: 7.066 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008806/0.6084, allocations: 4.684 MB / 0.5486 GB, free: 5.266 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003486/0.6119, allocations: 1.269 MB / 0.5498 GB, free: 4.832 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004454/0.6164, allocations: 1.781 MB / 0.5515 GB, free: 4.289 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001422/0.6179, allocations: 173.3 kB / 0.5517 GB, free: 4.289 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00371/0.6216, allocations: 0.9017 MB / 0.5526 GB, free: 4.117 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004153/0.6258, allocations: 1.928 MB / 0.5545 GB, free: 3.539 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002817/0.6287, allocations: 0.9609 MB / 0.5554 GB, free: 2.887 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01115/0.6399, allocations: 6.093 MB / 0.5614 GB, free: 15.36 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.6399, allocations: 0 / 0.5614 GB, free: 15.36 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.466e-06/0.64, allocations: 4 kB / 0.5614 GB, free: 15.36 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003447/0.6403, allocations: 0 / 0.5614 GB, free: 15.36 MB / 394.7 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.02047/0.6608, allocations: 5.003 MB / 0.5662 GB, free: 12.01 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.6609, allocations: 8.469 kB / 0.5663 GB, free: 12.01 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003316/0.6642, allocations: 0.8256 MB / 0.5671 GB, free: 11.43 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0204/0.6847, allocations: 2.694 MB / 0.5697 GB, free: 9.102 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01132/0.696, allocations: 3.493 MB / 0.5731 GB, free: 5.551 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004366/0.6965, allocations: 288.2 kB / 0.5734 GB, free: 5.27 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004149/0.7007, allocations: 0.6008 MB / 0.574 GB, free: 4.668 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04178/0.7425, allocations: 12.23 MB / 0.5859 GB, free: 7.629 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002467/0.7428, allocations: 59.42 kB / 0.586 GB, free: 7.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00124/0.7441, allocations: 179.8 kB / 0.5861 GB, free: 7.395 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006231/0.7503, allocations: 2.131 MB / 0.5882 GB, free: 5.258 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03952/0.7899, allocations: 10.9 MB / 0.5989 GB, free: 10.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1046/0.8945, allocations: 47.98 MB / 0.6457 GB, free: 9.148 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02767/0.9223, allocations: 5.408 MB / 0.651 GB, free: 3.57 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03487/0.9572, allocations: 12.41 MB / 0.6631 GB, free: 6.609 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.873e-05/0.9573, allocations: 59.88 kB / 0.6632 GB, free: 6.539 MB / 490.7 MB Notification: Performance of pre-optimization done (n=219): time 6.402e-06/0.9574, allocations: 0 / 0.6632 GB, free: 6.539 MB / 490.7 MB Notification: Performance of matching and sorting (n=258): time 0.4649/1.422, allocations: 25.4 MB / 0.688 GB, free: 152.6 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004346/1.427, allocations: 4.602 MB / 0.6925 GB, free: 148.4 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01301/1.44, allocations: 4.912 MB / 0.6973 GB, free: 148 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009133/1.441, allocations: 62.38 kB / 0.6973 GB, free: 148 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00343/1.444, allocations: 3.442 MB / 0.7007 GB, free: 146 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002099/1.446, allocations: 1.018 MB / 0.7017 GB, free: 145.3 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001668/1.448, allocations: 153.6 kB / 0.7018 GB, free: 145.2 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0008193/1.449, allocations: 0.626 MB / 0.7024 GB, free: 144.7 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009814/1.459, allocations: 3.3 MB / 0.7057 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01275/1.472, allocations: 7.575 MB / 0.7131 GB, free: 136.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01213/1.484, allocations: 4.848 MB / 0.7178 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001696/1.484, allocations: 48.33 kB / 0.7178 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=991) (initialization): time 0.0792/1.563, allocations: 15.97 MB / 0.7334 GB, free: 130.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001648/1.563, allocations: 70.12 kB / 0.7335 GB, free: 130.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05753/1.621, allocations: 9.421 MB / 0.7427 GB, free: 128.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05811/1.679, allocations: 6.643 MB / 0.7492 GB, free: 125.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01002/1.689, allocations: 1.701 MB / 0.7509 GB, free: 125.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04957/1.739, allocations: 21.88 MB / 0.7722 GB, free: 103 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01133/1.75, allocations: 0.6635 MB / 0.7729 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002084/1.752, allocations: 457 kB / 0.7733 GB, free: 101.9 MB / 0.4948 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 (912): * Single equations (assignments): 892 * 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.007571/1.76, allocations: 2.347 MB / 0.7756 GB, free: 99.59 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001281/1.761, allocations: 422.6 kB / 0.776 GB, free: 99.17 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02621/1.788, allocations: 7.1 MB / 0.7829 GB, free: 92.02 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02404/1.812, allocations: 6.446 MB / 0.7892 GB, free: 85.54 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.319e-05/1.812, allocations: 8 kB / 0.7892 GB, free: 85.53 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.507e-05/1.812, allocations: 11.95 kB / 0.7892 GB, free: 85.52 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04917/1.861, allocations: 15.43 MB / 0.8043 GB, free: 69.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-05/1.861, allocations: 12.03 kB / 0.8043 GB, free: 69.96 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004214/1.865, allocations: 452.8 kB / 0.8047 GB, free: 69.52 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0183/1.884, allocations: 3.349 MB / 0.808 GB, free: 66.14 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008278/1.885, allocations: 79.94 kB / 0.8081 GB, free: 66.06 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02912/1.914, allocations: 16.83 MB / 0.8245 GB, free: 48.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003369/1.917, allocations: 4.459 MB / 0.8289 GB, free: 43.58 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03247/1.95, allocations: 11.33 MB / 0.84 GB, free: 31.87 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001752/1.951, allocations: 499.5 kB / 0.8404 GB, free: 31.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001857/1.953, allocations: 75.97 kB / 0.8405 GB, free: 31.28 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005623/1.959, allocations: 299.4 kB / 0.8408 GB, free: 30.99 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001361/1.96, allocations: 197.6 kB / 0.841 GB, free: 30.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004278/1.961, allocations: 84.52 kB / 0.8411 GB, free: 30.72 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007767/1.969, allocations: 3.106 MB / 0.8441 GB, free: 27.61 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.012e-06/1.969, allocations: 0 / 0.8441 GB, free: 27.61 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0111/1.98, allocations: 1.614 MB / 0.8457 GB, free: 26.01 MB / 0.4948 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 (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 {(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: 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.03369/2.014, allocations: 13.27 MB / 0.8586 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02751/2.041, allocations: 9.572 MB / 0.868 GB, free: 2.746 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.509e-05/2.041, allocations: 4 kB / 0.868 GB, free: 2.742 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.353/2.394, allocations: 4.661 MB / 0.8725 GB, free: 142.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005583/2.4, allocations: 0.5191 MB / 0.873 GB, free: 142.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1992/2.599, allocations: 157.3 MB / 1.027 GB, free: 27.63 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01048/2.61, allocations: 3.822 MB / 1.03 GB, free: 26.27 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005885/2.616, allocations: 2.357 MB / 1.033 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of SimCode: time 2.565e-06/2.616, allocations: 0 / 1.033 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.706/9.321, allocations: 315.6 MB / 1.341 GB, free: 125.2 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat