Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.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.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold",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.001095/0.001095, allocations: 204.2 kB / 8.536 MB, free: 464 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.17/1.17, allocations: 225.5 MB / 234.4 MB, free: 9.492 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008952/0.0008954, allocations: 95.62 kB / 286.3 MB, free: 5.887 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1728/0.1728, allocations: 45.14 MB / 383.3 MB, free: 4.91 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1841/0.3569, allocations: 69.36 MB / 452.7 MB, free: 48.25 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09518/0.4521, allocations: 63.25 MB / 0.5039 GB, free: 0.9414 MB / 338.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2672/0.7194, allocations: 87.05 MB / 0.5889 GB, free: 0.7266 MB / 402.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/0.7196, allocations: 63.97 kB / 0.5889 GB, free: 0.6641 MB / 402.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.005324/0.725, allocations: 1.71 MB / 0.5906 GB, free: 14.92 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.725, allocations: 12 kB / 0.5906 GB, free: 14.91 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.7252, allocations: 23.89 kB / 0.5906 GB, free: 14.88 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/0.7254, allocations: 171.1 kB / 0.5908 GB, free: 14.68 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.7254, allocations: 4 kB / 0.5908 GB, free: 14.67 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.011e-05/0.7254, allocations: 4 kB / 0.5908 GB, free: 14.67 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001017/0.7255, allocations: 35.98 kB / 0.5908 GB, free: 14.63 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001335/0.7257, allocations: 69.67 kB / 0.5909 GB, free: 14.56 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.7257, allocations: 0 / 0.5909 GB, free: 14.56 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.7257, allocations: 5.516 kB / 0.5909 GB, free: 14.55 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.7257, allocations: 4 kB / 0.5909 GB, free: 14.55 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004741/0.7262, allocations: 293.2 kB / 0.5912 GB, free: 14.23 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000144/0.7263, allocations: 78.5 kB / 0.5913 GB, free: 14.14 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.333e-05/0.7264, allocations: 32.86 kB / 0.5913 GB, free: 14.11 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.757e-05/0.7265, allocations: 7.984 kB / 0.5913 GB, free: 14.1 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001303/0.7266, allocations: 91.28 kB / 0.5914 GB, free: 14 MB / 418.8 MB Notification: Performance of pre-optimization done (n=14): time 1.954e-06/0.7266, allocations: 224 / 0.5914 GB, free: 14 MB / 418.8 MB Notification: Performance of matching and sorting (n=14): time 0.0002531/0.7269, allocations: 97.58 kB / 0.5915 GB, free: 13.89 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/0.7269, allocations: 67.28 kB / 0.5915 GB, free: 13.82 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.568e-05/0.727, allocations: 106.3 kB / 0.5916 GB, free: 13.7 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.727, allocations: 29.7 kB / 0.5917 GB, free: 13.67 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.311e-05/0.7271, allocations: 84.42 kB / 0.5918 GB, free: 13.58 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.943e-05/0.7271, allocations: 31.7 kB / 0.5918 GB, free: 13.55 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.723e-06/0.7272, allocations: 7.938 kB / 0.5918 GB, free: 13.54 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.7273, allocations: 326.7 kB / 0.5921 GB, free: 13.21 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.577e-05/0.7274, allocations: 24.38 kB / 0.5921 GB, free: 13.19 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.136e-05/0.7275, allocations: 71.2 kB / 0.5922 GB, free: 13.1 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.999e-05/0.7275, allocations: 31.98 kB / 0.5922 GB, free: 13.07 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.7275, allocations: 4 kB / 0.5922 GB, free: 13.07 MB / 418.8 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002071/0.7278, allocations: 125.5 kB / 0.5924 GB, free: 12.94 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.7278, allocations: 4 kB / 0.5924 GB, free: 12.93 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.7278, allocations: 3.938 kB / 0.5924 GB, free: 12.93 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.7278, allocations: 4 kB / 0.5924 GB, free: 12.93 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.7279, allocations: 32.08 kB / 0.5924 GB, free: 12.89 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.728, allocations: 4 kB / 0.5924 GB, free: 12.89 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.089e-05/0.728, allocations: 11.84 kB / 0.5924 GB, free: 12.88 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.353e-05/0.7281, allocations: 4 kB / 0.5924 GB, free: 12.88 MB / 418.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.63e-05/0.7281, allocations: 118.9 kB / 0.5925 GB, free: 12.75 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.985e-05/0.7282, allocations: 11.91 kB / 0.5925 GB, free: 12.74 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.136e-05/0.7282, allocations: 12.34 kB / 0.5925 GB, free: 12.72 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.7282, allocations: 0 / 0.5925 GB, free: 12.72 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.7282, allocations: 11.19 kB / 0.5926 GB, free: 12.71 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.7283, allocations: 0 / 0.5926 GB, free: 12.71 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003899/0.7286, allocations: 363.1 kB / 0.5929 GB, free: 12.32 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.7287, allocations: 0 / 0.5929 GB, free: 12.32 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.744e-05/0.7287, allocations: 15.94 kB / 0.5929 GB, free: 12.3 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.7287, allocations: 0 / 0.5929 GB, free: 12.3 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/0.7288, allocations: 7.984 kB / 0.5929 GB, free: 12.29 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.7288, allocations: 0 / 0.5929 GB, free: 12.29 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.7288, allocations: 7.984 kB / 0.5929 GB, free: 12.29 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002443/0.729, allocations: 204.3 kB / 0.5931 GB, free: 12.07 MB / 418.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003115/0.7294, allocations: 0.5772 MB / 0.5937 GB, free: 11.48 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 4.037e-05/0.7294, allocations: 84.95 kB / 0.5938 GB, free: 11.38 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.168e-05/0.7294, allocations: 11.98 kB / 0.5938 GB, free: 11.36 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.7296, allocations: 11.91 kB / 0.5938 GB, free: 11.35 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.989e-05/0.7296, allocations: 11.97 kB / 0.5938 GB, free: 11.34 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.492e-05/0.7296, allocations: 4 kB / 0.5938 GB, free: 11.34 MB / 418.8 MB Notification: Performance of sort global known variables: time 4.637e-05/0.7297, allocations: 95.2 kB / 0.5939 GB, free: 11.24 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.0008149/0.7305, allocations: 20 kB / 0.5939 GB, free: 11.22 MB / 418.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001295/0.7306, allocations: 103.2 kB / 0.594 GB, free: 11.11 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.0001731/0.7308, allocations: 87.92 kB / 0.5941 GB, free: 11.03 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.7308, allocations: 0 / 0.5941 GB, free: 11.03 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 8.244e-05/0.7309, allocations: 43.94 kB / 0.5941 GB, free: 10.98 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002016/0.7311, allocations: 15.92 kB / 0.5942 GB, free: 10.97 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003458/0.7315, allocations: 119.6 kB / 0.5943 GB, free: 10.83 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002428/0.7317, allocations: 0.7156 MB / 0.595 GB, free: 10.09 MB / 418.8 MB Notification: Performance of SimCode: time 1.433e-06/0.7318, allocations: 0 / 0.595 GB, free: 10.09 MB / 418.8 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat