Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001079/0.001079, allocations: 201.8 kB / 8.54 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.198/1.198, allocations: 225.5 MB / 234.4 MB, free: 3.383 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008978/0.0008976, allocations: 94.23 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1094/0.1104, allocations: 56.9 MB / 343.2 MB, free: 8.613 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.2135, allocations: 51.47 MB / 394.7 MB, free: 5.09 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2664/0.48, allocations: 78.77 MB / 473.5 MB, free: 13.1 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001879/0.4802, allocations: 69.08 kB / 473.5 MB, free: 13.08 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.01105/0.4913, allocations: 4.665 MB / 478.2 MB, free: 10.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.4913, allocations: 8 kB / 478.2 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.168e-05/0.4914, allocations: 31.62 kB / 478.2 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002009/0.4916, allocations: 228.8 kB / 478.5 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.4916, allocations: 8 kB / 478.5 MB, free: 10.06 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.178e-05/0.4917, allocations: 20.52 kB / 478.5 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002508/0.4919, allocations: 137.2 kB / 478.6 MB, free: 9.957 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002853/0.4922, allocations: 169.8 kB / 478.8 MB, free: 9.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.4922, allocations: 5.219 kB / 478.8 MB, free: 9.836 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.037e-05/0.4923, allocations: 4 kB / 478.8 MB, free: 9.832 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.4923, allocations: 4.75 kB / 478.8 MB, free: 9.828 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.4934, allocations: 0.6986 MB / 479.5 MB, free: 9.316 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002526/0.4937, allocations: 114.6 kB / 479.6 MB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001289/0.4939, allocations: 92.38 kB / 479.7 MB, free: 9.172 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.66e-05/0.4939, allocations: 8 kB / 479.7 MB, free: 9.164 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.171e-05/0.4939, allocations: 33.44 kB / 479.7 MB, free: 9.125 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 1.633e-06/0.4939, allocations: 4 kB / 479.7 MB, free: 9.121 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.0009978/0.4949, allocations: 0.7625 MB / 480.5 MB, free: 8.379 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.877e-05/0.4949, allocations: 58.69 kB / 480.6 MB, free: 8.312 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.581e-05/0.495, allocations: 125.8 kB / 480.7 MB, free: 8.195 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.4951, allocations: 25.7 kB / 480.7 MB, free: 8.164 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.096e-05/0.4951, allocations: 135.5 kB / 480.8 MB, free: 8.035 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.183e-05/0.4952, allocations: 104.8 kB / 481 MB, free: 7.945 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.965e-06/0.4952, allocations: 4 kB / 481 MB, free: 7.941 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.811e-05/0.4953, allocations: 326 kB / 481.3 MB, free: 7.621 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.958e-05/0.4954, allocations: 53.56 kB / 481.3 MB, free: 7.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.4955, allocations: 92.05 kB / 481.4 MB, free: 7.516 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001027/0.4956, allocations: 64.59 kB / 481.5 MB, free: 7.477 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.4956, allocations: 4 kB / 481.5 MB, free: 7.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002653/0.4958, allocations: 207.5 kB / 481.7 MB, free: 7.309 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.4959, allocations: 8 kB / 481.7 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.4959, allocations: 1.5 kB / 481.7 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.4959, allocations: 1.094 kB / 481.7 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003072/0.4962, allocations: 87.39 kB / 481.8 MB, free: 7.219 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.4962, allocations: 0 / 481.8 MB, free: 7.219 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001257/0.4964, allocations: 15.98 kB / 481.8 MB, free: 7.203 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.495e-05/0.4964, allocations: 7.938 kB / 481.8 MB, free: 7.199 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.285e-05/0.4964, allocations: 112.9 kB / 481.9 MB, free: 7.082 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.854e-05/0.4965, allocations: 19.72 kB / 481.9 MB, free: 7.062 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.231e-05/0.4965, allocations: 16.25 kB / 482 MB, free: 7.059 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.4965, allocations: 4 kB / 482 MB, free: 7.055 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.4966, allocations: 0 / 482 MB, free: 7.055 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.4966, allocations: 4.484 kB / 482 MB, free: 7.051 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006263/0.4972, allocations: 0.5672 MB / 482.5 MB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.4972, allocations: 3.906 kB / 482.5 MB, free: 6.527 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003454/0.4976, allocations: 80.7 kB / 482.6 MB, free: 6.453 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.105e-06/0.4976, allocations: 0 / 482.6 MB, free: 6.453 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.4976, allocations: 6.531 kB / 482.6 MB, free: 6.449 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.4976, allocations: 4 kB / 482.6 MB, free: 6.445 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.4976, allocations: 11.98 kB / 482.6 MB, free: 6.434 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003663/0.498, allocations: 394 kB / 483 MB, free: 6.086 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004648/0.4985, allocations: 0.8543 MB / 483.9 MB, free: 5.309 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.164e-05/0.4985, allocations: 88.92 kB / 484 MB, free: 5.203 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.056e-05/0.4985, allocations: 0 / 484 MB, free: 5.203 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.4987, allocations: 17.36 kB / 484 MB, free: 5.188 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.102e-05/0.4987, allocations: 19.95 kB / 484 MB, free: 5.168 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.4988, allocations: 7.438 kB / 484 MB, free: 5.164 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.086e-05/0.4988, allocations: 102.4 kB / 484.1 MB, free: 5.074 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008359/0.4997, allocations: 55.98 kB / 484.2 MB, free: 5.02 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.193e-05/0.4998, allocations: 99.89 kB / 484.3 MB, free: 4.914 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000227/0.5, allocations: 152.2 kB / 484.4 MB, free: 4.809 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.5, allocations: 4.031 kB / 484.4 MB, free: 4.805 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.5001, allocations: 94.05 kB / 484.5 MB, free: 4.738 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000294/0.5004, allocations: 29.89 kB / 484.5 MB, free: 4.715 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009484/0.5014, allocations: 0.6735 MB / 485.2 MB, free: 4.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002264/0.5016, allocations: 0.7866 MB / 486 MB, free: 3.258 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5016, allocations: 0 / 486 MB, free: 3.258 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat does not exist to compare? outputFormat=mat