Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.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) 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 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(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",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.001032/0.001032, allocations: 203 kB / 8.542 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.148/1.148, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008707/0.0008708, allocations: 97.45 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.159/0.159, allocations: 45.16 MB / 383.4 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1913/0.3504, allocations: 69.35 MB / 452.7 MB, free: 76.16 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08501/0.4354, allocations: 63.24 MB / 0.5039 GB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2438/0.6792, allocations: 87.69 MB / 0.5895 GB, free: 15.13 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000156/0.6794, allocations: 68 kB / 0.5896 GB, free: 15.1 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.009426/0.6889, allocations: 3.112 MB / 0.5926 GB, free: 12.39 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.6889, allocations: 8 kB / 0.5926 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.575e-05/0.689, allocations: 11.91 kB / 0.5926 GB, free: 12.37 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003112/0.6893, allocations: 220.2 kB / 0.5928 GB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.6894, allocations: 4 kB / 0.5928 GB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.313e-05/0.6894, allocations: 11.84 kB / 0.5928 GB, free: 12.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.21e-05/0.6895, allocations: 38.75 kB / 0.5929 GB, free: 12.08 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000115/0.6896, allocations: 63.42 kB / 0.5929 GB, free: 12.02 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.6896, allocations: 0 / 0.5929 GB, free: 12.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.6897, allocations: 0 / 0.5929 GB, free: 12.02 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.6897, allocations: 4 kB / 0.5929 GB, free: 12.02 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005106/0.6902, allocations: 347.4 kB / 0.5933 GB, free: 11.67 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.178e-05/0.6903, allocations: 52.25 kB / 0.5933 GB, free: 11.62 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.461e-05/0.6903, allocations: 16.33 kB / 0.5933 GB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.207e-05/0.6904, allocations: 0 / 0.5933 GB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.828e-05/0.6904, allocations: 73.94 kB / 0.5934 GB, free: 11.54 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.6905, allocations: 4 kB / 0.5934 GB, free: 11.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001538/0.6906, allocations: 68.31 kB / 0.5935 GB, free: 11.46 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.178e-05/0.6907, allocations: 55.41 kB / 0.5935 GB, free: 11.4 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.153e-05/0.6907, allocations: 119.8 kB / 0.5936 GB, free: 11.28 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/0.6908, allocations: 25.7 kB / 0.5937 GB, free: 11.25 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.877e-05/0.6908, allocations: 95.58 kB / 0.5938 GB, free: 11.15 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.6908, allocations: 19.67 kB / 0.5938 GB, free: 11.14 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.25e-06/0.6909, allocations: 0 / 0.5938 GB, free: 11.14 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.468e-05/0.6909, allocations: 322.6 kB / 0.5941 GB, free: 10.82 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.756e-05/0.691, allocations: 19.06 kB / 0.5941 GB, free: 10.8 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.092e-05/0.691, allocations: 32.77 kB / 0.5941 GB, free: 10.77 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.067e-05/0.6911, allocations: 15.38 kB / 0.5942 GB, free: 10.76 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.6911, allocations: 0 / 0.5942 GB, free: 10.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001214/0.6912, allocations: 76.16 kB / 0.5942 GB, free: 10.69 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.6912, allocations: 8 kB / 0.5942 GB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.6912, allocations: 288 / 0.5942 GB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.516e-06/0.6912, allocations: 4.031 kB / 0.5942 GB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.6914, allocations: 15.98 kB / 0.5943 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.6914, allocations: 7.938 kB / 0.5943 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.6915, allocations: 23.3 kB / 0.5943 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.207e-06/0.6915, allocations: 4 kB / 0.5943 GB, free: 10.63 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u,change.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 6.18e-05/0.6916, allocations: 108.8 kB / 0.5944 GB, free: 10.52 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.212e-05/0.6916, allocations: 7.906 kB / 0.5944 GB, free: 10.51 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.62e-05/0.6917, allocations: 20.05 kB / 0.5944 GB, free: 10.49 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.6917, allocations: 3.984 kB / 0.5944 GB, free: 10.49 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.6917, allocations: 3.938 kB / 0.5944 GB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.6917, allocations: 0 / 0.5944 GB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002823/0.692, allocations: 331.5 kB / 0.5947 GB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.692, allocations: 0 / 0.5947 GB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.6921, allocations: 15.98 kB / 0.5948 GB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.6921, allocations: 0 / 0.5948 GB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/0.6921, allocations: 4 kB / 0.5948 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.6921, allocations: 0 / 0.5948 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.6921, allocations: 0 / 0.5948 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001888/0.6923, allocations: 200.5 kB / 0.595 GB, free: 9.934 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002878/0.6926, allocations: 0.5743 MB / 0.5955 GB, free: 9.371 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.784e-05/0.6927, allocations: 81.02 kB / 0.5956 GB, free: 9.273 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.6927, allocations: 7.891 kB / 0.5956 GB, free: 9.266 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.6929, allocations: 28.11 kB / 0.5956 GB, free: 9.238 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.632e-05/0.6929, allocations: 15.47 kB / 0.5956 GB, free: 9.227 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.6929, allocations: 4 kB / 0.5956 GB, free: 9.223 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.442e-05/0.693, allocations: 97.08 kB / 0.5957 GB, free: 9.137 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007983/0.6938, allocations: 19.98 kB / 0.5958 GB, free: 9.117 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (change.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.882e-05/0.6939, allocations: 99.19 kB / 0.5958 GB, free: 9.008 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001068/0.694, allocations: 42.06 kB / 0.5959 GB, free: 8.98 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.694, allocations: 0 / 0.5959 GB, free: 8.98 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.111e-05/0.6941, allocations: 27.38 kB / 0.5959 GB, free: 8.961 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002338/0.6943, allocations: 19.2 kB / 0.5959 GB, free: 8.945 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003278/0.6947, allocations: 134.5 kB / 0.5961 GB, free: 8.801 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002521/0.6949, allocations: 0.7194 MB / 0.5968 GB, free: 8.055 MB / 394.7 MB Notification: Performance of SimCode: time 3.01e-07/0.695, allocations: 3.938 kB / 0.5968 GB, free: 8.051 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat does not exist to compare? outputFormat=mat