Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007154/0.0007154, allocations: 88.62 kB / 16.31 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009414/0.0009416, allocations: 182 kB / 17.21 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 223.2 MB / 241.2 MB, free: 296 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002535/0.0002535, allocations: 10.09 kB / 300.9 MB, free: 6.355 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1007, allocations: 50.41 MB / 351.3 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002214/0.103, allocations: 1.657 MB / 353 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001479/0.1045, allocations: 1.049 MB / 354 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.241e-05/0.1046, allocations: 7.938 kB / 354 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006671/0.1052, allocations: 279.3 kB / 354.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003219/0.1056, allocations: 171.5 kB / 354.5 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005216/0.1061, allocations: 242.6 kB / 354.7 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003081/0.1064, allocations: 311.1 kB / 355 MB, free: 224 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.1065, allocations: 48.58 kB / 355.1 MB, free: 172 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.1067, allocations: 119.5 kB / 355.2 MB, free: 52 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/0.1069, allocations: 131.5 kB / 355.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.311e-05/0.1069, allocations: 4 kB / 355.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001242/0.107, allocations: 59.95 kB / 355.4 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.091e-05/0.1071, allocations: 67.75 kB / 355.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.999e-05/0.1072, allocations: 73.52 kB / 355.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002494/0.1074, allocations: 263.5 kB / 355.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.1074, allocations: 4 kB / 355.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1074, allocations: 0 / 355.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.688e-06/0.1075, allocations: 0 / 355.8 MB, free: 15.45 MB / 302.1 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.0007573/0.1082, allocations: 0.6027 MB / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.1083, allocations: 15.91 kB / 356.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.584e-05/0.1083, allocations: 50.53 kB / 356.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.48e-05/0.1084, allocations: 35.58 kB / 356.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003848/0.1088, allocations: 319 kB / 356.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.122e-05/0.1088, allocations: 8 kB / 356.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.929e-05/0.1088, allocations: 8 kB / 356.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000274/0.1091, allocations: 148 kB / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.1091, allocations: 0 / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.927e-05/0.1091, allocations: 8 kB / 357 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.1092, allocations: 3.953 kB / 357 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001525/0.1093, allocations: 67.95 kB / 357 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006296/0.1099, allocations: 0.4886 MB / 357.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002899/0.1103, allocations: 130.7 kB / 357.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.1104, allocations: 52.83 kB / 357.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-05/0.1104, allocations: 0 / 357.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002287/0.1106, allocations: 122.3 kB / 357.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.724e-06/0.1106, allocations: 4 kB / 357.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004273/0.1111, allocations: 209.2 kB / 358 MB, free: 13 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.41e-05/0.1112, allocations: 106.8 kB / 358.1 MB, free: 12.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004451/0.1116, allocations: 428.4 kB / 358.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.1116, allocations: 33.7 kB / 358.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.1118, allocations: 164 kB / 358.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.318e-05/0.1118, allocations: 43.45 kB / 358.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.843e-06/0.1118, allocations: 0 / 358.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.112, allocations: 350.8 kB / 359.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.842e-05/0.1121, allocations: 39.97 kB / 359.2 MB, free: 11.81 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.1122, allocations: 100.7 kB / 359.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001128/0.1124, allocations: 59.86 kB / 359.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.1124, allocations: 3.938 kB / 359.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002827/0.1127, allocations: 172.9 kB / 359.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.1127, allocations: 4 kB / 359.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.1127, allocations: 0 / 359.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.1127, allocations: 4 kB / 359.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.1128, allocations: 23.98 kB / 359.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.382e-05/0.1129, allocations: 7.938 kB / 359.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.491e-05/0.113, allocations: 23.86 kB / 359.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.113, allocations: 8 kB / 359.6 MB, free: 11.39 MB / 302.1 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.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * Number of discrete states: 0 () * Number of clocked 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 0.0001581/0.1131, allocations: 171.6 kB / 359.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.077e-05/0.1132, allocations: 27.62 kB / 359.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.431e-05/0.1133, allocations: 34.94 kB / 359.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1133, allocations: 4 kB / 359.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.1133, allocations: 0 / 359.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1133, allocations: 7.984 kB / 359.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002536/0.1136, allocations: 297.5 kB / 360.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1136, allocations: 0 / 360.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.932e-05/0.1136, allocations: 15.92 kB / 360.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1136, allocations: 0 / 360.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.1136, allocations: 0 / 360.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1136, allocations: 0 / 360.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1136, allocations: 4.047 kB / 360.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003162/0.114, allocations: 208.6 kB / 360.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.439e-05/0.1141, allocations: 112.7 kB / 360.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.836e-05/0.1141, allocations: 8 kB / 360.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.188e-05/0.1142, allocations: 15.98 kB / 360.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.206e-05/0.1143, allocations: 7.984 kB / 360.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.1143, allocations: 11.98 kB / 360.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003056/0.1146, allocations: 307 kB / 360.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1146, allocations: 3.938 kB / 360.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002786/0.1149, allocations: 59.98 kB / 360.8 MB, free: 10.02 MB / 302.1 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.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * 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.00141/0.1163, allocations: 1.062 MB / 361.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002803/0.1166, allocations: 118.8 kB / 362 MB, free: 8.984 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.1166, allocations: 8 kB / 362 MB, free: 8.977 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001166/0.1167, allocations: 51.92 kB / 362.1 MB, free: 8.926 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003807/0.1171, allocations: 65.38 kB / 362.1 MB, free: 8.859 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002437/0.1196, allocations: 1.654 MB / 363.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.1199, allocations: 0.7757 MB / 364.6 MB, free: 6.344 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001191/0.1201, allocations: 46.25 kB / 364.6 MB, free: 6.297 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001293/0.1202, allocations: 87.41 kB / 364.7 MB, free: 6.211 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1202, allocations: 0 / 364.7 MB, free: 6.211 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1961/0.3164, allocations: 6.408 MB / 371.1 MB, free: 24.89 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001603/0.3166, allocations: 214.3 kB / 371.3 MB, free: 24.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.871/2.188, allocations: 0.5625 kB / 371.3 MB, free: 24.66 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat