Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",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.00128/0.00128, allocations: 203.9 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.147/1.147, allocations: 225.5 MB / 234.4 MB, free: 3.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008641/0.0008642, allocations: 93.86 kB / 286.3 MB, free: 5.207 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1632/0.1632, allocations: 45.14 MB / 383.3 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1973/0.3605, allocations: 69.36 MB / 452.7 MB, free: 76.14 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08404/0.4446, allocations: 63.24 MB / 0.5039 GB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2556/0.7002, allocations: 86.18 MB / 0.588 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001617/0.7004, allocations: 61.03 kB / 0.5881 GB, free: 0.6523 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.002257/0.7026, allocations: 1.011 MB / 0.5891 GB, free: 15.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.7027, allocations: 12 kB / 0.5891 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.181e-05/0.7027, allocations: 7.891 kB / 0.5891 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.7029, allocations: 182.5 kB / 0.5893 GB, free: 15.49 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.344e-06/0.7029, allocations: 0 / 0.5893 GB, free: 15.49 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.805e-05/0.7029, allocations: 4 kB / 0.5893 GB, free: 15.49 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.662e-05/0.703, allocations: 14.88 kB / 0.5893 GB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.545e-05/0.7031, allocations: 40.02 kB / 0.5893 GB, free: 15.44 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.7031, allocations: 4 kB / 0.5893 GB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.7031, allocations: 7.922 kB / 0.5893 GB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.433e-06/0.7031, allocations: 4 kB / 0.5893 GB, free: 15.42 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004086/0.7035, allocations: 255.5 kB / 0.5896 GB, free: 15.14 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.739e-05/0.7036, allocations: 21.89 kB / 0.5896 GB, free: 15.12 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.758e-05/0.7036, allocations: 12.92 kB / 0.5896 GB, free: 15.1 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.282e-06/0.7036, allocations: 0 / 0.5896 GB, free: 15.1 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.186e-05/0.7037, allocations: 50.41 kB / 0.5897 GB, free: 15.04 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.7037, allocations: 0 / 0.5897 GB, free: 15.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001128/0.7038, allocations: 36.39 kB / 0.5897 GB, free: 15 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.638e-05/0.7039, allocations: 58.08 kB / 0.5897 GB, free: 14.94 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.668e-05/0.704, allocations: 108.1 kB / 0.5898 GB, free: 14.83 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.704, allocations: 29.7 kB / 0.5899 GB, free: 14.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.499e-05/0.704, allocations: 84.08 kB / 0.59 GB, free: 14.71 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.465e-05/0.704, allocations: 11.89 kB / 0.59 GB, free: 14.7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-06/0.704, allocations: 0 / 0.59 GB, free: 14.7 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.7042, allocations: 318.2 kB / 0.5903 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.43e-05/0.7042, allocations: 7.562 kB / 0.5903 GB, free: 14.38 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.107e-05/0.7042, allocations: 13.72 kB / 0.5903 GB, free: 14.36 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.004e-05/0.7042, allocations: 15.73 kB / 0.5903 GB, free: 14.35 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.7042, allocations: 0 / 0.5903 GB, free: 14.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.166e-05/0.7043, allocations: 45.7 kB / 0.5903 GB, free: 14.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/0.7043, allocations: 8 kB / 0.5904 GB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.7043, allocations: 0 / 0.5904 GB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.006e-05/0.7044, allocations: 3.906 kB / 0.5904 GB, free: 14.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.332e-05/0.7044, allocations: 11.97 kB / 0.5904 GB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.7044, allocations: 0.625 kB / 0.5904 GB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.942e-05/0.7044, allocations: 4 kB / 0.5904 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.599e-06/0.7045, allocations: 0 / 0.5904 GB, free: 14.27 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: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.201e-05/0.7045, allocations: 105 kB / 0.5905 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.316e-05/0.7045, allocations: 7.906 kB / 0.5905 GB, free: 14.16 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.389e-05/0.7046, allocations: 4 kB / 0.5905 GB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.7046, allocations: 0 / 0.5905 GB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.7046, allocations: 0 / 0.5905 GB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.7046, allocations: 0 / 0.5905 GB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002423/0.7048, allocations: 285.3 kB / 0.5908 GB, free: 13.83 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.7049, allocations: 4 kB / 0.5908 GB, free: 13.83 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.116e-05/0.7049, allocations: 5.312 kB / 0.5908 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.7049, allocations: 0 / 0.5908 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/0.7049, allocations: 4 kB / 0.5908 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.7049, allocations: 0 / 0.5908 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.7049, allocations: 0 / 0.5908 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001251/0.7051, allocations: 150.6 kB / 0.5909 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002432/0.7053, allocations: 0.5252 MB / 0.5914 GB, free: 13.13 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.533e-05/0.7054, allocations: 85.09 kB / 0.5915 GB, free: 13.03 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.247e-05/0.7054, allocations: 0 / 0.5915 GB, free: 13.03 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.217e-05/0.7054, allocations: 4 kB / 0.5915 GB, free: 13.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.006e-05/0.7055, allocations: 3.688 kB / 0.5915 GB, free: 13.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.7055, allocations: 0.875 kB / 0.5915 GB, free: 13.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.397e-05/0.7055, allocations: 91.56 kB / 0.5916 GB, free: 12.93 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007885/0.7063, allocations: 8.062 kB / 0.5916 GB, free: 12.93 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 8.936e-05/0.7064, allocations: 94.5 kB / 0.5917 GB, free: 12.83 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 6.166e-05/0.7065, allocations: 19.31 kB / 0.5917 GB, free: 12.81 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.7065, allocations: 0 / 0.5917 GB, free: 12.81 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.466e-05/0.7065, allocations: 4 kB / 0.5917 GB, free: 12.81 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001866/0.7067, allocations: 18.58 kB / 0.5917 GB, free: 12.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002173/0.7069, allocations: 83.36 kB / 0.5918 GB, free: 12.69 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002575/0.7072, allocations: 0.6994 MB / 0.5925 GB, free: 11.97 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.7072, allocations: 0 / 0.5925 GB, free: 11.97 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat does not exist to compare? outputFormat=mat