Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00107/0.00107, allocations: 97.45 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001096/0.001096, allocations: 198.3 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002771/0.0002773, allocations: 11.98 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1111, allocations: 51.49 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.1991/0.3102, allocations: 29.67 MB / 387.9 MB, free: 4.863 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01362/0.3239, allocations: 7.737 MB / 395.6 MB, free: 15.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004714/0.3286, allocations: 148.8 kB / 395.7 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004206/0.3329, allocations: 1.428 MB / 397.2 MB, free: 15.13 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.015/0.3479, allocations: 4.34 MB / 401.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002403/0.3503, allocations: 0.4992 MB / 402 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003915/0.3542, allocations: 1.932 MB / 403.9 MB, free: 11.08 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003551/0.3578, allocations: 2.934 MB / 406.9 MB, free: 9.348 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001188/0.359, allocations: 0.8571 MB / 407.7 MB, free: 8.898 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001217/0.3602, allocations: 1.131 MB / 408.9 MB, free: 8.293 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002292/0.3605, allocations: 113.4 kB / 409 MB, free: 8.293 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001334/0.3618, allocations: 0.768 MB / 409.7 MB, free: 7.855 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001011/0.3628, allocations: 1.297 MB / 411 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005403/0.3634, allocations: 0.6948 MB / 411.7 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003637/0.367, allocations: 4.432 MB / 416.2 MB, free: 1.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.3671, allocations: 0 / 416.2 MB, free: 1.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.592e-06/0.3671, allocations: 0 / 416.2 MB, free: 1.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.366e-05/0.3672, allocations: 4 kB / 416.2 MB, free: 1.406 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.00585/0.373, allocations: 3.414 MB / 419.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.3731, allocations: 8.031 kB / 419.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006755/0.3737, allocations: 0.608 MB / 420.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006546/0.3803, allocations: 2.109 MB / 422.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003903/0.3842, allocations: 1.986 MB / 424.3 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001459/0.3844, allocations: 196.8 kB / 424.5 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005206/0.3849, allocations: 255.8 kB / 424.7 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01387/0.3988, allocations: 8.505 MB / 433.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.599e-05/0.3989, allocations: 39.59 kB / 433.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003342/0.3993, allocations: 127.8 kB / 433.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002674/0.402, allocations: 1.703 MB / 435.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01423/0.4162, allocations: 7.172 MB / 442.3 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04043/0.4567, allocations: 34.21 MB / 476.5 MB, free: 3.262 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007133/0.4639, allocations: 3.306 MB / 479.8 MB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007203/0.4711, allocations: 4.491 MB / 484.3 MB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.573e-05/0.4712, allocations: 47.12 kB / 484.3 MB, free: 11.03 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 4.849e-06/0.4712, allocations: 0 / 484.3 MB, free: 11.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.02806/0.4993, allocations: 11.81 MB / 496.2 MB, free: 15 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.4994, allocations: 149.1 kB / 496.3 MB, free: 14.83 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005526/0.505, allocations: 3.823 MB / 0.4884 GB, free: 11.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003094/0.5053, allocations: 41.7 kB / 0.4884 GB, free: 10.97 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00206/0.5074, allocations: 2.752 MB / 0.4911 GB, free: 8.176 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007844/0.5082, allocations: 0.5171 MB / 0.4916 GB, free: 7.652 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002187/0.5084, allocations: 108 kB / 0.4917 GB, free: 7.547 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003451/0.5087, allocations: 0.5291 MB / 0.4922 GB, free: 7.012 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002505/0.5112, allocations: 1.685 MB / 0.4939 GB, free: 5.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004639/0.5159, allocations: 5.08 MB / 0.4989 GB, free: 14.51 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003686/0.5196, allocations: 2.873 MB / 0.5017 GB, free: 11.64 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.862e-05/0.5197, allocations: 36 kB / 0.5017 GB, free: 11.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01001/0.5297, allocations: 6.66 MB / 0.5082 GB, free: 4.938 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.794e-05/0.5298, allocations: 56 kB / 0.5083 GB, free: 4.883 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001007/0.5299, allocations: 124.1 kB / 0.5084 GB, free: 4.762 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006067/0.5305, allocations: 345.3 kB / 0.5087 GB, free: 4.422 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003624/0.5342, allocations: 1.248 MB / 0.5099 GB, free: 3.172 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002514/0.5367, allocations: 2.325 MB / 0.5122 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003676/0.5404, allocations: 291.5 kB / 0.5125 GB, free: 436 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000501/0.5409, allocations: 336 kB / 0.5128 GB, free: 100 kB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (664): * Single equations (assignments): 660 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002791/0.5437, allocations: 1.784 MB / 0.5145 GB, free: 14.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004661/0.5442, allocations: 308 kB / 0.5148 GB, free: 13.99 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004373/0.5486, allocations: 2.367 MB / 0.5171 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.967e-05/0.5486, allocations: 16 kB / 0.5172 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.5486, allocations: 11.92 kB / 0.5172 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.5486, allocations: 3.984 kB / 0.5172 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0109/0.5595, allocations: 5.946 MB / 0.523 GB, free: 5.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/0.5596, allocations: 0 / 0.523 GB, free: 5.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008102/0.5604, allocations: 175.8 kB / 0.5231 GB, free: 5.398 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002061/0.5625, allocations: 0.7146 MB / 0.5238 GB, free: 4.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001343/0.5626, allocations: 31.98 kB / 0.5239 GB, free: 4.648 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2305/0.7932, allocations: 4.556 MB / 0.5283 GB, free: 140.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.7932, allocations: 2.75 kB / 0.5283 GB, free: 140.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008182/0.8014, allocations: 4.46 MB / 0.5327 GB, free: 139.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009001/0.8024, allocations: 375.7 kB / 0.533 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003501/0.8027, allocations: 22.92 kB / 0.5331 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/0.8039, allocations: 70.36 kB / 0.5331 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001949/0.8041, allocations: 67.97 kB / 0.5332 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.329e-05/0.8042, allocations: 38.06 kB / 0.5332 GB, free: 139.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003771/0.808, allocations: 2.402 MB / 0.5356 GB, free: 139.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.808, allocations: 1.719 kB / 0.5356 GB, free: 139.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00436/0.8124, allocations: 0.8238 MB / 0.5364 GB, free: 139 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (96): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008045/0.8204, allocations: 5.393 MB / 0.5416 GB, free: 136.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007151/0.8276, allocations: 4.006 MB / 0.5456 GB, free: 135.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/0.8277, allocations: 3.969 kB / 0.5456 GB, free: 135.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.8291, allocations: 1.112 MB / 0.5466 GB, free: 134.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002112/0.8312, allocations: 357.8 kB / 0.547 GB, free: 134.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03189/0.8632, allocations: 99.33 MB / 0.644 GB, free: 37.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002541/0.8658, allocations: 2.856 MB / 0.6468 GB, free: 36.03 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003722/0.8695, allocations: 1.659 MB / 0.6484 GB, free: 35.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001951/0.8715, allocations: 1.524 MB / 0.6499 GB, free: 34.67 MB / 446.1 MB Notification: Performance of SimCode: time 9.82e-07/0.8715, allocations: 0 / 0.6499 GB, free: 34.67 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2804/1.152, allocations: 64.58 MB / 0.713 GB, free: 149.1 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002507/1.152, allocations: 220.6 kB / 0.7132 GB, free: 148.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.595/4.747, allocations: 0 / 0.7132 GB, free: 148.8 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat does not exist to compare? outputFormat=mat