Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.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.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",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.001772/0.001772, allocations: 209 kB / 8.545 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.303/1.303, 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.0009519/0.000952, allocations: 94.69 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1166/0.1175, allocations: 56.9 MB / 343.2 MB, free: 8.641 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09021/0.2078, allocations: 51.47 MB / 394.7 MB, free: 5.121 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2721/0.4799, allocations: 81.02 MB / 475.7 MB, free: 11.41 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001687/0.4801, allocations: 71.42 kB / 475.8 MB, free: 11.39 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.01795/0.4981, allocations: 6.744 MB / 482.5 MB, free: 6.574 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.4981, allocations: 8 kB / 482.5 MB, free: 6.566 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.49e-05/0.4982, allocations: 27.72 kB / 482.6 MB, free: 6.539 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003728/0.4986, allocations: 270.5 kB / 482.8 MB, free: 6.258 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.4986, allocations: 4 kB / 482.8 MB, free: 6.254 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.866e-05/0.4986, allocations: 4 kB / 482.8 MB, free: 6.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001099/0.4988, allocations: 37.3 kB / 482.9 MB, free: 6.227 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001428/0.4989, allocations: 104.2 kB / 483 MB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.4989, allocations: 8 kB / 483 MB, free: 6.109 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/0.499, allocations: 3.984 kB / 483 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.499, allocations: 0 / 483 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005107/0.4995, allocations: 0.5951 MB / 483.6 MB, free: 5.512 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.4997, allocations: 112.6 kB / 483.7 MB, free: 5.395 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.596e-05/0.4997, allocations: 39.58 kB / 483.7 MB, free: 5.355 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.955e-05/0.4998, allocations: 4 kB / 483.7 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001347/0.4999, allocations: 104.3 kB / 483.8 MB, free: 5.246 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.663e-06/0.4999, allocations: 3.938 kB / 483.8 MB, free: 5.242 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002815/0.5002, allocations: 115.8 kB / 484 MB, free: 5.145 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.5003, allocations: 135.5 kB / 484.1 MB, free: 4.984 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002711/0.5005, allocations: 259 kB / 484.3 MB, free: 4.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.5006, allocations: 33.69 kB / 484.4 MB, free: 4.73 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.539e-05/0.5006, allocations: 102 kB / 484.5 MB, free: 4.633 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.123e-05/0.5007, allocations: 26.84 kB / 484.5 MB, free: 4.613 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.933e-06/0.5007, allocations: 0 / 484.5 MB, free: 4.613 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.164e-05/0.5007, allocations: 333.6 kB / 484.8 MB, free: 4.285 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.51e-05/0.5008, allocations: 26.44 kB / 484.9 MB, free: 4.27 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.325e-05/0.5009, allocations: 75.69 kB / 484.9 MB, free: 4.188 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.864e-05/0.5009, allocations: 30.11 kB / 485 MB, free: 4.168 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.501, allocations: 0 / 485 MB, free: 4.168 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001858/0.5011, allocations: 126.1 kB / 485.1 MB, free: 4.059 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.5012, allocations: 8.125 kB / 485.1 MB, free: 4.051 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.5012, allocations: 7.938 kB / 485.1 MB, free: 4.043 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.5012, allocations: 0 / 485.1 MB, free: 4.043 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.501e-05/0.5013, allocations: 19.23 kB / 485.1 MB, free: 4.027 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.5013, allocations: 7.906 kB / 485.1 MB, free: 4.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/0.5014, allocations: 15.98 kB / 485.1 MB, free: 4.004 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.5015, allocations: 4 kB / 485.1 MB, free: 4 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.y,sample.y) * 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.905e-05/0.5016, allocations: 120 kB / 485.3 MB, free: 3.879 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.623e-05/0.5016, allocations: 19.72 kB / 485.3 MB, free: 3.859 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001792/0.5018, allocations: 105.1 kB / 485.4 MB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.5018, allocations: 0 / 485.4 MB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.5018, allocations: 5.5 kB / 485.4 MB, free: 3.77 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.5018, allocations: 0 / 485.4 MB, free: 3.77 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/0.502, allocations: 228.1 kB / 485.6 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.502, allocations: 0 / 485.6 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.58e-05/0.5021, allocations: 11.94 kB / 485.6 MB, free: 3.527 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.5021, allocations: 5.781 kB / 485.6 MB, free: 3.523 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.5021, allocations: 0 / 485.6 MB, free: 3.523 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.5021, allocations: 4 kB / 485.6 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.5021, allocations: 3.984 kB / 485.6 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001924/0.5023, allocations: 192.2 kB / 485.8 MB, free: 3.316 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002322/0.5025, allocations: 0.5499 MB / 486.4 MB, free: 2.758 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.997e-05/0.5026, allocations: 107.8 kB / 486.5 MB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.277e-05/0.5027, allocations: 3.984 kB / 486.5 MB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.5028, allocations: 12 kB / 486.5 MB, free: 2.621 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.039e-05/0.5029, allocations: 15.59 kB / 486.5 MB, free: 2.609 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.5029, allocations: 6.812 kB / 486.5 MB, free: 2.605 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001624/0.503, allocations: 201.3 kB / 486.7 MB, free: 2.449 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008602/0.5039, allocations: 55.77 kB / 486.8 MB, free: 2.398 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0007326/0.5047, allocations: 313.3 kB / 487.1 MB, free: 2.195 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001908/0.5049, allocations: 82.67 kB / 487.2 MB, free: 2.141 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.5049, allocations: 0 / 487.2 MB, free: 2.141 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.176e-05/0.505, allocations: 54.8 kB / 487.2 MB, free: 2.102 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.5053, allocations: 49.41 kB / 487.3 MB, free: 2.062 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000527/0.5058, allocations: 254 kB / 487.5 MB, free: 1.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002298/0.5061, allocations: 0.7657 MB / 488.3 MB, free: 1.035 MB / 346.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5061, allocations: 0 / 488.3 MB, free: 1.035 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat does not exist to compare? outputFormat=mat