Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",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.00105/0.00105, allocations: 205.5 kB / 8.544 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.208/1.208, allocations: 225.5 MB / 234.4 MB, free: 3.43 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008758/0.0008758, allocations: 94.19 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1139/0.1148, allocations: 56.9 MB / 343.2 MB, free: 8.684 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09729/0.2121, allocations: 51.48 MB / 394.7 MB, free: 5.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2694/0.4815, allocations: 81.65 MB / 476.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000207/0.4818, allocations: 77.56 kB / 476.4 MB, free: 10.81 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.01741/0.4992, allocations: 6.939 MB / 483.4 MB, free: 5.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.4992, allocations: 12 kB / 483.4 MB, free: 5.738 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.836e-05/0.4993, allocations: 24.34 kB / 483.4 MB, free: 5.715 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004046/0.4997, allocations: 280.4 kB / 483.7 MB, free: 5.422 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/0.4998, allocations: 0 / 483.7 MB, free: 5.422 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.939e-05/0.4998, allocations: 4 kB / 483.7 MB, free: 5.418 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001097/0.4999, allocations: 42.11 kB / 483.7 MB, free: 5.391 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002645/0.5002, allocations: 170.3 kB / 483.9 MB, free: 5.223 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.5002, allocations: 1.062 kB / 483.9 MB, free: 5.223 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.5002, allocations: 0 / 483.9 MB, free: 5.223 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.5002, allocations: 4 kB / 483.9 MB, free: 5.219 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004492/0.5007, allocations: 352 kB / 484.2 MB, free: 4.871 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001484/0.5009, allocations: 119.4 kB / 484.4 MB, free: 4.734 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.194e-05/0.5009, allocations: 64.67 kB / 484.4 MB, free: 4.672 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.424e-05/0.501, allocations: 0 / 484.4 MB, free: 4.672 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.698e-05/0.5011, allocations: 65.84 kB / 484.5 MB, free: 4.605 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 1.453e-06/0.5011, allocations: 0 / 484.5 MB, free: 4.605 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002528/0.5013, allocations: 114.1 kB / 484.6 MB, free: 4.504 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.5014, allocations: 166.1 kB / 484.8 MB, free: 4.305 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.5016, allocations: 246.1 kB / 485 MB, free: 4.102 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.5016, allocations: 25.7 kB / 485 MB, free: 4.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.354e-05/0.5017, allocations: 107.1 kB / 485.1 MB, free: 3.965 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.196e-05/0.5017, allocations: 19.14 kB / 485.1 MB, free: 3.949 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.659e-06/0.5017, allocations: 4 kB / 485.2 MB, free: 3.945 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.775e-05/0.5018, allocations: 325.5 kB / 485.5 MB, free: 3.625 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.829e-05/0.5018, allocations: 22.75 kB / 485.5 MB, free: 3.609 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.657e-05/0.5019, allocations: 76.03 kB / 485.6 MB, free: 3.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.163e-05/0.5019, allocations: 36.33 kB / 485.6 MB, free: 3.492 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.502, allocations: 0 / 485.6 MB, free: 3.492 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001659/0.5021, allocations: 113.9 kB / 485.7 MB, free: 3.391 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.5021, allocations: 8.094 kB / 485.7 MB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.5022, allocations: 9.5 kB / 485.7 MB, free: 3.375 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.5022, allocations: 0 / 485.7 MB, free: 3.375 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.81e-05/0.5023, allocations: 15.98 kB / 485.7 MB, free: 3.359 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/0.5023, allocations: 6.891 kB / 485.8 MB, free: 3.355 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.447e-05/0.5024, allocations: 4 kB / 485.8 MB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.5024, allocations: 7.5 kB / 485.8 MB, free: 3.348 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.898e-05/0.5025, allocations: 112.9 kB / 485.9 MB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.914e-05/0.5026, allocations: 79.72 kB / 486 MB, free: 3.152 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000185/0.5028, allocations: 97.19 kB / 486 MB, free: 3.066 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.5028, allocations: 3.906 kB / 486 MB, free: 3.062 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.5028, allocations: 5.938 kB / 486.1 MB, free: 3.059 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.5028, allocations: 0 / 486.1 MB, free: 3.059 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001573/0.503, allocations: 212.4 kB / 486.3 MB, free: 2.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.503, allocations: 0 / 486.3 MB, free: 2.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.819e-05/0.503, allocations: 10.56 kB / 486.3 MB, free: 2.832 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.503, allocations: 7.984 kB / 486.3 MB, free: 2.824 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.301e-05/0.503, allocations: 4.094 kB / 486.3 MB, free: 2.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.5031, allocations: 4 kB / 486.3 MB, free: 2.816 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.5031, allocations: 3.906 kB / 486.3 MB, free: 2.812 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001878/0.5033, allocations: 197.3 kB / 486.5 MB, free: 2.598 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002365/0.5035, allocations: 0.5726 MB / 487.1 MB, free: 2.004 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.85e-05/0.5036, allocations: 116 kB / 487.2 MB, free: 1.879 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.771e-05/0.5036, allocations: 3.984 kB / 487.2 MB, free: 1.875 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.908e-05/0.5037, allocations: 12.38 kB / 487.2 MB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.694e-05/0.5038, allocations: 0 / 487.2 MB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.5038, allocations: 11.92 kB / 487.2 MB, free: 1.855 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001627/0.504, allocations: 194.6 kB / 487.4 MB, free: 1.707 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008974/0.5049, allocations: 43 kB / 487.4 MB, free: 1.672 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.0008134/0.5057, allocations: 315.1 kB / 487.7 MB, free: 1.473 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001942/0.5059, allocations: 72.67 kB / 487.8 MB, free: 1.422 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.5059, allocations: 0 / 487.8 MB, free: 1.422 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.229e-05/0.506, allocations: 26.88 kB / 487.8 MB, free: 1.402 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003925/0.5064, allocations: 68.28 kB / 487.9 MB, free: 1.352 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005479/0.5069, allocations: 247.7 kB / 488.1 MB, free: 1.113 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002718/0.5072, allocations: 0.7663 MB / 488.9 MB, free: 328 kB / 346.7 MB Notification: Performance of SimCode: time 3.41e-07/0.5072, allocations: 0 / 488.9 MB, free: 328 kB / 346.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat does not exist to compare? outputFormat=mat