Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.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.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",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.001751/0.001751, allocations: 205.9 kB / 8.542 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.268/1.268, allocations: 225.5 MB / 234.4 MB, free: 3.402 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009498/0.0009498, allocations: 91.55 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1089/0.1099, allocations: 56.89 MB / 343.2 MB, free: 8.625 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09691/0.2068, allocations: 51.47 MB / 394.7 MB, free: 5.098 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2657/0.4726, allocations: 80.76 MB / 475.5 MB, free: 11.41 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/0.4728, allocations: 70.52 kB / 475.5 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.02704/0.4999, allocations: 10.28 MB / 485.8 MB, free: 3.789 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.4999, allocations: 8 kB / 485.8 MB, free: 3.781 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.5001, allocations: 37.11 kB / 485.8 MB, free: 3.746 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006452/0.5007, allocations: 362.5 kB / 486.2 MB, free: 3.398 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.265e-05/0.5008, allocations: 4 kB / 486.2 MB, free: 3.395 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.605e-05/0.5008, allocations: 8 kB / 486.2 MB, free: 3.387 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001592/0.501, allocations: 65.47 kB / 486.3 MB, free: 3.344 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002076/0.5012, allocations: 127.2 kB / 486.4 MB, free: 3.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.5012, allocations: 0 / 486.4 MB, free: 3.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/0.5012, allocations: 0 / 486.4 MB, free: 3.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.5013, allocations: 4 kB / 486.4 MB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007678/0.502, allocations: 498 kB / 486.9 MB, free: 2.785 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001791/0.5022, allocations: 124 kB / 487 MB, free: 2.688 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.736e-05/0.5023, allocations: 49.16 kB / 487.1 MB, free: 2.652 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.5023, allocations: 4 kB / 487.1 MB, free: 2.648 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000125/0.5025, allocations: 93.94 kB / 487.2 MB, free: 2.562 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.673e-06/0.5025, allocations: 0 / 487.2 MB, free: 2.562 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002743/0.5027, allocations: 141.1 kB / 487.3 MB, free: 2.441 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.721e-05/0.5028, allocations: 114.1 kB / 487.4 MB, free: 2.309 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004026/0.5032, allocations: 400.3 kB / 487.8 MB, free: 2.004 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.024e-05/0.5032, allocations: 25.7 kB / 487.8 MB, free: 1.973 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.211e-05/0.5033, allocations: 122.4 kB / 487.9 MB, free: 1.863 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.264e-05/0.5033, allocations: 37.75 kB / 488 MB, free: 1.832 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.392e-06/0.5033, allocations: 0 / 488 MB, free: 1.832 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.483e-05/0.5034, allocations: 343.1 kB / 488.3 MB, free: 1.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.555e-05/0.5035, allocations: 42.56 kB / 488.4 MB, free: 1.477 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.801e-05/0.5035, allocations: 103.1 kB / 488.5 MB, free: 1.375 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.232e-05/0.5036, allocations: 43.38 kB / 488.5 MB, free: 1.348 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.5036, allocations: 0 / 488.5 MB, free: 1.348 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002336/0.5039, allocations: 163.5 kB / 488.7 MB, free: 1.211 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.5039, allocations: 8 kB / 488.7 MB, free: 1.203 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.5039, allocations: 9.156 kB / 488.7 MB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.5039, allocations: 0 / 488.7 MB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/0.5041, allocations: 27.92 kB / 488.7 MB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.944e-06/0.5041, allocations: 3.203 kB / 488.7 MB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001212/0.5042, allocations: 11.94 kB / 488.7 MB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.5042, allocations: 4 kB / 488.7 MB, free: 1.152 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.536e-05/0.5043, allocations: 131.5 kB / 488.9 MB, free: 1.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.602e-05/0.5044, allocations: 30.25 kB / 488.9 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002833/0.5047, allocations: 166 kB / 489 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.5047, allocations: 4 kB / 489 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.5047, allocations: 0 / 489 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.5047, allocations: 0 / 489 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002144/0.5049, allocations: 291.3 kB / 489.3 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.5049, allocations: 0 / 489.3 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.484e-05/0.505, allocations: 15.92 kB / 489.3 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.505, allocations: 4 kB / 489.3 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.505, allocations: 8.125 kB / 489.4 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.505, allocations: 0 / 489.4 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.505, allocations: 0 / 489.4 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002084/0.5052, allocations: 184.3 kB / 489.5 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002926/0.5055, allocations: 0.5628 MB / 490.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.5057, allocations: 120 kB / 490.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.025e-05/0.5057, allocations: 7.906 kB / 490.2 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/0.5059, allocations: 15.3 kB / 490.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.746e-05/0.506, allocations: 11.98 kB / 490.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/0.506, allocations: 11.23 kB / 490.3 MB, free: 15.67 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003506/0.5063, allocations: 307.9 kB / 490.6 MB, free: 15.44 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009231/0.5073, allocations: 67.06 kB / 490.6 MB, free: 15.38 MB / 362.7 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 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,Pre1.u) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0006896/0.508, allocations: 324.5 kB / 490.9 MB, free: 15.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002476/0.5082, allocations: 120.4 kB / 491.1 MB, free: 15.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.5082, allocations: 0 / 491.1 MB, free: 15.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.918e-05/0.5083, allocations: 62.5 kB / 491.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003808/0.5087, allocations: 60.05 kB / 491.2 MB, free: 15.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008001/0.5095, allocations: 392.9 kB / 491.6 MB, free: 14.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00048/0.51, allocations: 0.8274 MB / 492.4 MB, free: 13.82 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.51, allocations: 0 / 492.4 MB, free: 13.82 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat