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.001236/0.001236, allocations: 88.84 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001081/0.00108, allocations: 204.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.3 MB / 245.9 MB, free: 12.02 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2238/0.2238, allocations: 45.92 MB / 344 MB, free: 12.31 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002624/0.0002624, allocations: 8 kB / 418.1 MB, free: 20.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.1418, allocations: 63.47 MB / 481.5 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring2): time 0.3354/0.4773, allocations: 43.57 MB / 0.5128 GB, free: 9.543 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0246/0.5019, allocations: 10.63 MB / 0.5232 GB, free: 8.918 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01076/0.5127, allocations: 216.3 kB / 0.5234 GB, free: 8.883 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008614/0.5214, allocations: 2.143 MB / 0.5255 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0232/0.5446, allocations: 6.321 MB / 0.5316 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003894/0.5485, allocations: 0.7932 MB / 0.5324 GB, free: 7.242 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007108/0.5557, allocations: 3.171 MB / 0.5355 GB, free: 6.535 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00631/0.562, allocations: 4.67 MB / 0.5401 GB, free: 5.023 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00238/0.5644, allocations: 1.272 MB / 0.5413 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002341/0.5668, allocations: 1.77 MB / 0.543 GB, free: 3.941 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005802/0.5674, allocations: 172.9 kB / 0.5432 GB, free: 3.941 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001925/0.5693, allocations: 0.8883 MB / 0.5441 GB, free: 3.727 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001729/0.5711, allocations: 1.913 MB / 0.5459 GB, free: 3.113 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001064/0.5721, allocations: 0.9525 MB / 0.5469 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00634/0.5785, allocations: 6.075 MB / 0.5528 GB, free: 13.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.5785, allocations: 0 / 0.5528 GB, free: 13.57 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.5785, allocations: 0 / 0.5528 GB, free: 13.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003016/0.5788, allocations: 0 / 0.5528 GB, free: 13.57 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.01373/0.5926, allocations: 4.977 MB / 0.5577 GB, free: 8.559 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.5927, allocations: 11.97 kB / 0.5577 GB, free: 8.547 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002245/0.5949, allocations: 0.8204 MB / 0.5585 GB, free: 7.758 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0117/0.6066, allocations: 2.857 MB / 0.5613 GB, free: 4.895 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008386/0.615, allocations: 3.05 MB / 0.5642 GB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003164/0.6154, allocations: 286.4 kB / 0.5645 GB, free: 1.578 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002202/0.6176, allocations: 0.6044 MB / 0.5651 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02705/0.6447, allocations: 12.29 MB / 0.5771 GB, free: 4.055 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001819/0.6449, allocations: 51.53 kB / 0.5772 GB, free: 4.004 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006088/0.6456, allocations: 181.6 kB / 0.5773 GB, free: 3.867 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00379/0.6494, allocations: 2.14 MB / 0.5794 GB, free: 1.738 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02545/0.6748, allocations: 10.95 MB / 0.5901 GB, free: 6.777 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06771/0.7426, allocations: 47.92 MB / 0.6369 GB, free: 5.867 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01575/0.7584, allocations: 5.469 MB / 0.6422 GB, free: 236 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02139/0.7798, allocations: 12.48 MB / 0.6544 GB, free: 3.262 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.063e-05/0.7799, allocations: 55.86 kB / 0.6545 GB, free: 3.199 MB / 494.1 MB Notification: Performance of pre-optimization done (n=219): time 4.949e-06/0.7799, allocations: 0 / 0.6545 GB, free: 3.199 MB / 494.1 MB Notification: Performance of matching and sorting (n=258): time 0.06322/0.8431, allocations: 25.39 MB / 0.6793 GB, free: 9.422 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003066/0.8462, allocations: 4.603 MB / 0.6838 GB, free: 4.355 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006337/0.8526, allocations: 4.874 MB / 0.6885 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008569/0.8535, allocations: 61.86 kB / 0.6886 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002355/0.8559, allocations: 3.542 MB / 0.6921 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002026/0.8579, allocations: 1.014 MB / 0.693 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005578/0.8585, allocations: 148 kB / 0.6932 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0004894/0.859, allocations: 0.6283 MB / 0.6938 GB, free: 10 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005212/0.8642, allocations: 3.317 MB / 0.697 GB, free: 6.684 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00818/0.8724, allocations: 7.593 MB / 0.7045 GB, free: 12.98 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007797/0.8802, allocations: 4.861 MB / 0.7092 GB, free: 8.113 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.47e-05/0.8803, allocations: 44 kB / 0.7092 GB, free: 8.07 MB / 0.545 GB Notification: Performance of matching and sorting (n=991) (initialization): time 0.3389/1.219, allocations: 16.36 MB / 0.7252 GB, free: 182.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001486/1.219, allocations: 68.19 kB / 0.7253 GB, free: 182.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0316/1.251, allocations: 9.684 MB / 0.7347 GB, free: 182.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03114/1.282, allocations: 6.912 MB / 0.7415 GB, free: 180.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006979/1.289, allocations: 1.714 MB / 0.7432 GB, free: 180.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02931/1.319, allocations: 21.96 MB / 0.7646 GB, free: 165.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008753/1.327, allocations: 0.6668 MB / 0.7653 GB, free: 164.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001611/1.329, allocations: 457.7 kB / 0.7657 GB, free: 164 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 (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.005096/1.334, allocations: 2.333 MB / 0.768 GB, free: 161.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/1.335, allocations: 417.8 kB / 0.7684 GB, free: 161.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001185/1.336, allocations: 0.6312 MB / 0.769 GB, free: 161.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01214/1.348, allocations: 6.472 MB / 0.7753 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.676e-05/1.349, allocations: 8 kB / 0.7753 GB, free: 154.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.726e-05/1.349, allocations: 15.86 kB / 0.7753 GB, free: 154.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02915/1.378, allocations: 15.47 MB / 0.7905 GB, free: 139 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.32e-05/1.378, allocations: 8 kB / 0.7905 GB, free: 139 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002145/1.38, allocations: 458.9 kB / 0.7909 GB, free: 138.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009559/1.39, allocations: 3.352 MB / 0.7942 GB, free: 135.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007187/1.39, allocations: 84.8 kB / 0.7943 GB, free: 135.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0163/1.407, allocations: 16.83 MB / 0.8107 GB, free: 117.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002168/1.409, allocations: 4.454 MB / 0.815 GB, free: 112.8 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01731/1.426, allocations: 11.38 MB / 0.8261 GB, free: 101.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001688/1.428, allocations: 499.5 kB / 0.8266 GB, free: 100.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007627/1.429, allocations: 73.72 kB / 0.8267 GB, free: 100.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002496/1.431, allocations: 307.5 kB / 0.827 GB, free: 100.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005933/1.432, allocations: 201.5 kB / 0.8272 GB, free: 100.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002104/1.432, allocations: 89.44 kB / 0.8273 GB, free: 100.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004157/1.436, allocations: 3.07 MB / 0.8303 GB, free: 97.05 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.8e-07/1.436, allocations: 4 kB / 0.8303 GB, free: 97.05 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007967/1.444, allocations: 1.6 MB / 0.8318 GB, free: 95.46 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 (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.01768/1.462, allocations: 13.33 MB / 0.8448 GB, free: 81.86 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01602/1.478, allocations: 9.593 MB / 0.8542 GB, free: 72.11 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/1.478, allocations: 0 / 0.8542 GB, free: 72.11 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008149/1.486, allocations: 4.685 MB / 0.8588 GB, free: 67.24 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003126/1.489, allocations: 0.5272 MB / 0.8593 GB, free: 66.71 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.384/1.873, allocations: 156.8 MB / 1.012 GB, free: 106.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004443/1.878, allocations: 3.802 MB / 1.016 GB, free: 105.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005719/1.884, allocations: 2.254 MB / 1.018 GB, free: 105.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002939/1.887, allocations: 2.289 MB / 1.021 GB, free: 103.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.333e-06/1.887, allocations: 0 / 1.021 GB, free: 103.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1592/2.046, allocations: 114.2 MB / 1.132 GB, free: 8.434 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/2.046, allocations: 200.7 kB / 1.132 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.696/6.742, allocations: 3.938 kB / 1.132 GB, free: 8.191 MB / 0.5606 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