Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009518/0.000952, allocations: 97.8 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001272/0.001272, allocations: 195.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002642/0.0002642, allocations: 4 kB / 306.8 MB, free: 1.457 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1141, allocations: 51.5 MB / 358.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.2974/0.4115, allocations: 16.27 MB / 374.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01178/0.4234, allocations: 4.773 MB / 379.4 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003485/0.4269, allocations: 77.59 kB / 379.4 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002608/0.4295, allocations: 0.7803 MB / 380.2 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00908/0.4386, allocations: 2.626 MB / 382.8 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002254/0.4409, allocations: 467.2 kB / 383.3 MB, free: 7.562 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006059/0.447, allocations: 2.865 MB / 386.2 MB, free: 7.223 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003832/0.4508, allocations: 1.583 MB / 387.8 MB, free: 6.852 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002304/0.4531, allocations: 0.7548 MB / 388.5 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002749/0.4559, allocations: 1.161 MB / 389.7 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008667/0.4568, allocations: 82.44 kB / 389.7 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002752/0.4596, allocations: 0.7416 MB / 390.5 MB, free: 5.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001865/0.4614, allocations: 0.9848 MB / 391.5 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001661/0.4631, allocations: 0.5 MB / 392 MB, free: 5.359 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005642/0.4688, allocations: 3.075 MB / 395 MB, free: 3.488 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.074e-05/0.4688, allocations: 4 kB / 395.1 MB, free: 3.484 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.4688, allocations: 0 / 395.1 MB, free: 3.484 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002496/0.4691, allocations: 1.219 kB / 395.1 MB, free: 3.484 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.00878/0.4779, allocations: 2.547 MB / 397.6 MB, free: 1.664 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.527e-05/0.478, allocations: 7.438 kB / 397.6 MB, free: 1.664 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001749/0.4797, allocations: 462.6 kB / 398.1 MB, free: 1.375 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005593/0.4853, allocations: 1.625 MB / 399.7 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00415/0.4895, allocations: 1.564 MB / 401.2 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001795/0.4897, allocations: 127.9 kB / 401.4 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001079/0.4908, allocations: 158 kB / 401.5 MB, free: 15.49 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01329/0.5041, allocations: 6.525 MB / 408.1 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.156e-05/0.5043, allocations: 31.66 kB / 408.1 MB, free: 8.887 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003018/0.5046, allocations: 82.95 kB / 408.2 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002399/0.507, allocations: 1.472 MB / 409.6 MB, free: 7.371 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01105/0.518, allocations: 5.819 MB / 415.5 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03279/0.5509, allocations: 25.75 MB / 441.2 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00572/0.5566, allocations: 2.568 MB / 443.8 MB, free: 4.438 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001907/0.5586, allocations: 1.215 MB / 445 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008028/0.5666, allocations: 4.803 MB / 449.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.899e-05/0.5667, allocations: 50.5 kB / 449.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 4.117e-06/0.5667, allocations: 0 / 449.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.02494/0.5917, allocations: 9.749 MB / 459.6 MB, free: 4.391 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.083e-05/0.5918, allocations: 144.9 kB / 459.7 MB, free: 4.219 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004553/0.5963, allocations: 2.707 MB / 462.4 MB, free: 1.492 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002764/0.5966, allocations: 37.7 kB / 462.5 MB, free: 1.449 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001944/0.5986, allocations: 2.047 MB / 464.5 MB, free: 15.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006562/0.5993, allocations: 427.1 kB / 464.9 MB, free: 14.99 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001831/0.5994, allocations: 80 kB / 465 MB, free: 14.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003044/0.5998, allocations: 494.9 kB / 465.5 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002281/0.602, allocations: 1.421 MB / 466.9 MB, free: 13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004246/0.6063, allocations: 4.041 MB / 471 MB, free: 7.637 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003478/0.6098, allocations: 2.336 MB / 473.3 MB, free: 5.305 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.054e-05/0.6099, allocations: 28 kB / 473.3 MB, free: 5.277 MB / 382.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01103/0.6209, allocations: 5.973 MB / 479.3 MB, free: 15.3 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.451e-05/0.621, allocations: 51.97 kB / 479.3 MB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001351/0.6211, allocations: 99.98 kB / 479.4 MB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002265/0.6234, allocations: 0.824 MB / 480.3 MB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003082/0.6265, allocations: 0.9435 MB / 481.2 MB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006526/0.6331, allocations: 4.335 MB / 485.5 MB, free: 8.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0041/0.6372, allocations: 247.6 kB / 485.8 MB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007472/0.638, allocations: 267.9 kB / 486.1 MB, free: 8.406 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 425 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (498): * Single equations (assignments): 494 * 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 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003035/0.641, allocations: 1.365 MB / 487.4 MB, free: 7.031 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000576/0.6416, allocations: 221.1 kB / 487.6 MB, free: 6.812 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004399/0.646, allocations: 2.13 MB / 489.8 MB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-05/0.6461, allocations: 14.34 kB / 489.8 MB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-05/0.6461, allocations: 7.984 kB / 489.8 MB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.6461, allocations: 3.984 kB / 489.8 MB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/0.657, allocations: 5.072 MB / 494.9 MB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/0.657, allocations: 0 / 494.9 MB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007837/0.6578, allocations: 160.3 kB / 495 MB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002051/0.6599, allocations: 0.6833 MB / 495.7 MB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.66, allocations: 23.11 kB / 495.7 MB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005278/0.6653, allocations: 3.881 MB / 499.6 MB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.6653, allocations: 4.031 kB / 499.6 MB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006618/0.6719, allocations: 4.05 MB / 0.4919 GB, free: 6.543 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008765/0.6728, allocations: 294 kB / 0.4921 GB, free: 6.234 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003528/0.6732, allocations: 12 kB / 0.4921 GB, free: 6.223 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009288/0.6741, allocations: 86.17 kB / 0.4922 GB, free: 6.141 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001875/0.6743, allocations: 48.36 kB / 0.4923 GB, free: 6.094 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-05/0.6744, allocations: 36 kB / 0.4923 GB, free: 6.059 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002737/0.6772, allocations: 1.678 MB / 0.4939 GB, free: 4.371 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.6772, allocations: 0 / 0.4939 GB, free: 4.371 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003733/0.6809, allocations: 0.6747 MB / 0.4946 GB, free: 3.699 MB / 414.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 (74): * Single equations (assignments): 70 * 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%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00787/0.6888, allocations: 4.696 MB / 0.4992 GB, free: 14.96 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00682/0.6957, allocations: 3.456 MB / 0.5026 GB, free: 11.52 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.904e-06/0.6957, allocations: 1.312 kB / 0.5026 GB, free: 11.52 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001544/0.6973, allocations: 1.047 MB / 0.5036 GB, free: 10.46 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002472/0.6998, allocations: 247.8 kB / 0.5038 GB, free: 10.21 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04607/0.7459, allocations: 21.23 MB / 0.5246 GB, free: 2.555 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003873/0.7498, allocations: 2.233 MB / 0.5267 GB, free: 300 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.2105/0.9603, allocations: 1.316 MB / 0.528 GB, free: 148 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002116/0.9624, allocations: 1.096 MB / 0.5291 GB, free: 148 MB / 446.1 MB Notification: Performance of SimCode: time 1.723e-06/0.9625, allocations: 1.125 kB / 0.5291 GB, free: 148 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07582/1.038, allocations: 49.01 MB / 0.577 GB, free: 114.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001496/1.038, allocations: 234.6 kB / 0.5772 GB, free: 114.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.127/4.165, allocations: 0 / 0.5772 GB, free: 114.7 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat does not exist to compare? outputFormat=mat