Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.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.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.RootMeanSquare,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare",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.00174/0.00174, allocations: 202.3 kB / 8.541 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.204/1.204, allocations: 225.5 MB / 234.4 MB, free: 3.398 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008876/0.0008876, allocations: 96.78 kB / 286.3 MB, free: 5.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1656/0.1656, allocations: 45.15 MB / 383.4 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2006/0.3663, allocations: 69.36 MB / 452.7 MB, free: 76.13 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08865/0.455, allocations: 63.24 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2693/0.7243, allocations: 87.16 MB / 0.589 GB, free: 15.61 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001514/0.7245, allocations: 60.34 kB / 0.589 GB, free: 15.58 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.006061/0.7305, allocations: 2.016 MB / 0.591 GB, free: 13.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.7306, allocations: 8 kB / 0.591 GB, free: 13.83 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002114/0.7308, allocations: 35.8 kB / 0.591 GB, free: 13.79 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002575/0.7311, allocations: 210.9 kB / 0.5912 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.7311, allocations: 7.938 kB / 0.5913 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.531e-05/0.7311, allocations: 7.469 kB / 0.5913 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001081/0.7313, allocations: 40.17 kB / 0.5913 GB, free: 13.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001366/0.7314, allocations: 76.97 kB / 0.5914 GB, free: 13.45 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.7314, allocations: 7.984 kB / 0.5914 GB, free: 13.44 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.7314, allocations: 7.594 kB / 0.5914 GB, free: 13.44 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.7315, allocations: 7.984 kB / 0.5914 GB, free: 13.43 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00043/0.7319, allocations: 334.4 kB / 0.5917 GB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.006e-05/0.732, allocations: 49.3 kB / 0.5918 GB, free: 13.05 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.189e-05/0.732, allocations: 26.2 kB / 0.5918 GB, free: 13.04 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/0.7321, allocations: 3.938 kB / 0.5918 GB, free: 13.03 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001288/0.7322, allocations: 77.2 kB / 0.5919 GB, free: 12.95 MB / 394.7 MB Notification: Performance of pre-optimization done (n=9): time 1.373e-06/0.7322, allocations: 0 / 0.5919 GB, free: 12.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001898/0.7324, allocations: 90.62 kB / 0.5919 GB, free: 12.87 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/0.7324, allocations: 55.39 kB / 0.592 GB, free: 12.8 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.7326, allocations: 133.9 kB / 0.5921 GB, free: 12.68 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.7326, allocations: 25.7 kB / 0.5922 GB, free: 12.65 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.851e-05/0.7326, allocations: 95.16 kB / 0.5922 GB, free: 12.56 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.762e-05/0.7327, allocations: 27.44 kB / 0.5923 GB, free: 12.54 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.022e-06/0.7327, allocations: 0 / 0.5923 GB, free: 12.54 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.7328, allocations: 325.8 kB / 0.5926 GB, free: 12.21 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.001e-05/0.7328, allocations: 18.56 kB / 0.5926 GB, free: 12.2 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.937e-05/0.7329, allocations: 76.14 kB / 0.5927 GB, free: 12.11 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.934e-05/0.733, allocations: 36.73 kB / 0.5927 GB, free: 12.09 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.733, allocations: 0 / 0.5927 GB, free: 12.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001868/0.7332, allocations: 110.8 kB / 0.5928 GB, free: 11.98 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.207e-06/0.7332, allocations: 4 kB / 0.5928 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.7332, allocations: 7.984 kB / 0.5928 GB, free: 11.97 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.7332, allocations: 7.906 kB / 0.5928 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.7334, allocations: 35.2 kB / 0.5929 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.431e-06/0.7334, allocations: 0.5469 kB / 0.5929 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.98e-05/0.7335, allocations: 11.94 kB / 0.5929 GB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.7335, allocations: 4 kB / 0.5929 GB, free: 11.92 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.mean1.y_last,mean1.y_last,$whenCondition2,$whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 8.017e-05/0.7336, allocations: 112.8 kB / 0.593 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.776e-05/0.7336, allocations: 7.906 kB / 0.593 GB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.489e-05/0.7336, allocations: 20.08 kB / 0.593 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.7337, allocations: 3.984 kB / 0.593 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.7337, allocations: 0 / 0.593 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.7337, allocations: 0 / 0.593 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001354/0.7338, allocations: 186 kB / 0.5932 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.7338, allocations: 0 / 0.5932 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/0.7339, allocations: 11.22 kB / 0.5932 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.7339, allocations: 7.938 kB / 0.5932 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.734, allocations: 3.984 kB / 0.5932 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.734, allocations: 0 / 0.5932 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.734, allocations: 4 kB / 0.5932 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002095/0.7342, allocations: 144.2 kB / 0.5934 GB, free: 11.4 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003443/0.7345, allocations: 0.5366 MB / 0.5939 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.92e-05/0.7346, allocations: 89 kB / 0.594 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.406e-05/0.7346, allocations: 0 / 0.594 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.806e-05/0.7347, allocations: 15.41 kB / 0.594 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.437e-05/0.7348, allocations: 7.984 kB / 0.594 GB, free: 10.76 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.7348, allocations: 0 / 0.594 GB, free: 10.76 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.808e-05/0.7348, allocations: 106.3 kB / 0.5941 GB, free: 10.66 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007784/0.7356, allocations: 23.94 kB / 0.5941 GB, free: 10.64 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,mean1.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 2 (mean1.x,rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 0.0001214/0.7358, allocations: 114.7 kB / 0.5942 GB, free: 10.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001232/0.7359, allocations: 66.67 kB / 0.5943 GB, free: 10.47 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.7359, allocations: 3.938 kB / 0.5943 GB, free: 10.47 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.138e-05/0.7359, allocations: 27.44 kB / 0.5943 GB, free: 10.45 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001453/0.7361, allocations: 12.03 kB / 0.5943 GB, free: 10.44 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003844/0.7365, allocations: 171.3 kB / 0.5945 GB, free: 10.26 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002937/0.7368, allocations: 0.7271 MB / 0.5952 GB, free: 9.504 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.7368, allocations: 4 kB / 0.5952 GB, free: 9.5 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_RootMeanSquare.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.RootMeanSquare_res.mat does not exist to compare? outputFormat=mat