Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001019/0.001019, allocations: 194 kB / 17.38 MB, free: 4.438 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.203/1.203, allocations: 226.5 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007199/0.0007199, allocations: 93.89 kB / 296.7 MB, free: 6.863 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002078/0.0002078, allocations: 8 kB / 356.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1916, allocations: 51.28 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.0309/0.2226, allocations: 42.55 MB / 450.7 MB, free: 1 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01926/0.2419, allocations: 9.469 MB / 460.1 MB, free: 7.512 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007565/0.2495, allocations: 199.5 kB / 460.3 MB, free: 7.316 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006078/0.2556, allocations: 2.185 MB / 462.5 MB, free: 5.121 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01672/0.2723, allocations: 6.595 MB / 469.1 MB, free: 14.5 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003493/0.2758, allocations: 0.745 MB / 469.9 MB, free: 13.76 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.006701/0.2826, allocations: 5.341 MB / 475.2 MB, free: 8.406 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006262/0.2889, allocations: 4.742 MB / 479.9 MB, free: 3.586 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002276/0.2912, allocations: 1.382 MB / 481.3 MB, free: 2.199 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003101/0.2943, allocations: 2.189 MB / 483.5 MB, free: 4 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009966/0.2953, allocations: 160 kB / 483.7 MB, free: 15.84 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002731/0.298, allocations: 1.123 MB / 484.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002422/0.3005, allocations: 1.866 MB / 486.7 MB, free: 12.85 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003375/0.3039, allocations: 2.087 MB / 488.8 MB, free: 10.75 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006563/0.3105, allocations: 5.714 MB / 494.5 MB, free: 5.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.3105, allocations: 0 / 494.5 MB, free: 5.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.053e-06/0.3105, allocations: 0 / 494.5 MB, free: 5.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000314/0.3108, allocations: 0 / 494.5 MB, free: 5.02 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.00902/0.3199, allocations: 4.338 MB / 498.8 MB, free: 0.6133 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.3199, allocations: 12.03 kB / 498.8 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001512/0.3214, allocations: 0.8021 MB / 499.6 MB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00824/0.3297, allocations: 2.237 MB / 0.4901 GB, free: 13.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006104/0.3358, allocations: 2.887 MB / 0.4929 GB, free: 10.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002933/0.3361, allocations: 270.8 kB / 0.4932 GB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001518/0.3377, allocations: 435.6 kB / 0.4936 GB, free: 9.902 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2241/0.5618, allocations: 12.21 MB / 0.5055 GB, free: 89.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001599/0.562, allocations: 49.92 kB / 0.5056 GB, free: 89.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005435/0.5626, allocations: 170.7 kB / 0.5057 GB, free: 89.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003233/0.5658, allocations: 2.173 MB / 0.5078 GB, free: 89.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02008/0.5859, allocations: 10.18 MB / 0.5178 GB, free: 84.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04162/0.6276, allocations: 44.27 MB / 0.561 GB, free: 40.49 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009622/0.6373, allocations: 4.6 MB / 0.5655 GB, free: 35.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001828/0.6391, allocations: 1.728 MB / 0.5672 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009065/0.6482, allocations: 8.189 MB / 0.5752 GB, free: 25.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.598e-05/0.6483, allocations: 59.8 kB / 0.5753 GB, free: 25.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=183): time 4.228e-06/0.6483, allocations: 0 / 0.5753 GB, free: 25.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=205): time 0.03338/0.6817, allocations: 15.92 MB / 0.5908 GB, free: 9.297 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009221/0.6826, allocations: 1.597 MB / 0.5924 GB, free: 7.531 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004291/0.687, allocations: 4.188 MB / 0.5964 GB, free: 3.324 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002687/0.6872, allocations: 53.7 kB / 0.5965 GB, free: 3.266 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001402/0.6887, allocations: 3.398 MB / 0.5998 GB, free: 15.87 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007153/0.6894, allocations: 0.8145 MB / 0.6006 GB, free: 15.06 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002454/0.6896, allocations: 139.3 kB / 0.6007 GB, free: 14.93 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003319/0.69, allocations: 0.5873 MB / 0.6013 GB, free: 14.33 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003047/0.693, allocations: 2.203 MB / 0.6035 GB, free: 12.12 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005303/0.6983, allocations: 6.331 MB / 0.6097 GB, free: 3.746 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009945/0.7083, allocations: 9.229 MB / 0.6187 GB, free: 8.465 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.561e-05/0.7084, allocations: 40 kB / 0.6187 GB, free: 8.426 MB / 410.7 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01498/0.7234, allocations: 9.027 MB / 0.6275 GB, free: 15.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.511e-05/0.7235, allocations: 68 kB / 0.6276 GB, free: 15.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004978/0.7285, allocations: 2.826 MB / 0.6303 GB, free: 12.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003004/0.7315, allocations: 1.072 MB / 0.6314 GB, free: 11.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004114/0.7357, allocations: 1.575 MB / 0.6329 GB, free: 9.809 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004081/0.7398, allocations: 4.392 MB / 0.6372 GB, free: 5.156 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004382/0.7442, allocations: 415.4 kB / 0.6376 GB, free: 4.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005373/0.7447, allocations: 416 kB / 0.638 GB, free: 4.344 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (848): * Single equations (assignments): 839 * 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: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003154/0.7479, allocations: 2.215 MB / 0.6402 GB, free: 2.117 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005135/0.7484, allocations: 379.1 kB / 0.6405 GB, free: 1.742 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006013/0.7544, allocations: 3.276 MB / 0.6437 GB, free: 14.44 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004691/0.7591, allocations: 2.741 MB / 0.6464 GB, free: 11.69 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.7591, allocations: 4 kB / 0.6464 GB, free: 11.68 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.882e-05/0.7592, allocations: 11.95 kB / 0.6464 GB, free: 11.67 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01533/0.7745, allocations: 10.35 MB / 0.6565 GB, free: 1.082 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.83e-05/0.7745, allocations: 12 kB / 0.6565 GB, free: 1.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001351/0.7759, allocations: 360.3 kB / 0.6569 GB, free: 0.7188 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002834/0.7788, allocations: 0.9902 MB / 0.6579 GB, free: 15.71 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001453/0.7789, allocations: 67.97 kB / 0.6579 GB, free: 15.65 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004421/0.7833, allocations: 4.595 MB / 0.6624 GB, free: 10.79 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008562/0.7842, allocations: 1.47 MB / 0.6638 GB, free: 9.172 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007974/0.7922, allocations: 5.894 MB / 0.6696 GB, free: 3.074 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008728/0.7931, allocations: 444 kB / 0.67 GB, free: 2.617 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005858/0.7937, allocations: 62 kB / 0.6701 GB, free: 2.559 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001774/0.7955, allocations: 143.8 kB / 0.6702 GB, free: 2.418 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004064/0.7959, allocations: 176.4 kB / 0.6704 GB, free: 2.246 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/0.796, allocations: 75.98 kB / 0.6705 GB, free: 2.172 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.1812/0.9773, allocations: 2.572 MB / 0.673 GB, free: 151.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.01e-07/0.9773, allocations: 0 / 0.673 GB, free: 151.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006256/0.9836, allocations: 1.138 MB / 0.6741 GB, free: 151.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($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],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * 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: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01015/0.9937, allocations: 6.598 MB / 0.6805 GB, free: 148.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008447/1.002, allocations: 5.828 MB / 0.6862 GB, free: 146.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/1.002, allocations: 3.281 kB / 0.6862 GB, free: 146.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003351/1.006, allocations: 2.19 MB / 0.6884 GB, free: 145.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008969/1.015, allocations: 497 kB / 0.6888 GB, free: 145.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0471/1.062, allocations: 38.55 MB / 0.7265 GB, free: 111.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002831/1.065, allocations: 3.462 MB / 0.7299 GB, free: 108.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002058/1.067, allocations: 2.143 MB / 0.732 GB, free: 106 MB / 458.7 MB Notification: Performance of SimCode: time 7.21e-07/1.067, allocations: 4 kB / 0.732 GB, free: 106 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.124/9.19, allocations: 156.3 MB / 0.8846 GB, free: 134.5 MB / 474.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1)