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.001542/0.001542, allocations: 97.09 kB / 16.31 MB, free: 6.457 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.001936/0.001936, allocations: 174.2 kB / 17.19 MB, free: 6.348 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.378/1.378, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002679/0.0002682, allocations: 6.406 kB / 300.8 MB, free: 5.977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1124, allocations: 50.43 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002122/0.1146, allocations: 1.64 MB / 352.9 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001644/0.1163, allocations: 1.014 MB / 353.9 MB, free: 8.98 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.1164, allocations: 4 kB / 353.9 MB, free: 8.977 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000749/0.1172, allocations: 259.4 kB / 354.1 MB, free: 8.723 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003763/0.1176, allocations: 175.5 kB / 354.3 MB, free: 8.551 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006717/0.1183, allocations: 249 kB / 354.6 MB, free: 8.312 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002794/0.1186, allocations: 211.5 kB / 354.8 MB, free: 8.105 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.1187, allocations: 44.52 kB / 354.8 MB, free: 8.059 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001455/0.1188, allocations: 115.5 kB / 354.9 MB, free: 7.945 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001481/0.119, allocations: 115.6 kB / 355 MB, free: 7.832 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.643e-05/0.119, allocations: 12 kB / 355 MB, free: 7.82 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000126/0.1192, allocations: 51.83 kB / 355.1 MB, free: 7.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.754e-05/0.1193, allocations: 75.8 kB / 355.2 MB, free: 7.695 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.214e-05/0.1193, allocations: 69.52 kB / 355.2 MB, free: 7.621 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002784/0.1196, allocations: 255.4 kB / 355.5 MB, free: 7.371 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.1196, allocations: 0 / 355.5 MB, free: 7.371 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1196, allocations: 0 / 355.5 MB, free: 7.371 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.1197, allocations: 4 kB / 355.5 MB, free: 7.367 MB / 286.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.0008819/0.1205, allocations: 0.6027 MB / 356.1 MB, free: 6.703 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.1206, allocations: 12.03 kB / 356.1 MB, free: 6.691 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.494e-05/0.1207, allocations: 46.5 kB / 356.1 MB, free: 6.637 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.871e-05/0.1207, allocations: 39.56 kB / 356.2 MB, free: 6.598 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004104/0.1211, allocations: 315 kB / 356.5 MB, free: 6.254 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.1212, allocations: 4 kB / 356.5 MB, free: 6.25 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.205e-05/0.1212, allocations: 12 kB / 356.5 MB, free: 6.238 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002761/0.1215, allocations: 152 kB / 356.7 MB, free: 6.074 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.1215, allocations: 4 kB / 356.7 MB, free: 6.07 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.973e-05/0.1215, allocations: 7.938 kB / 356.7 MB, free: 6.062 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.395e-06/0.1216, allocations: 7.953 kB / 356.7 MB, free: 6.055 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001543/0.1217, allocations: 63.95 kB / 356.7 MB, free: 5.992 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006916/0.1224, allocations: 0.4925 MB / 357.2 MB, free: 5.449 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003072/0.1227, allocations: 138.6 kB / 357.4 MB, free: 5.305 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.031e-05/0.1228, allocations: 8 kB / 357.4 MB, free: 5.297 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002331/0.123, allocations: 111.3 kB / 357.5 MB, free: 5.176 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.953e-06/0.123, allocations: 0 / 357.5 MB, free: 5.176 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004599/0.1235, allocations: 211.4 kB / 357.7 MB, free: 4.965 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.932e-05/0.1236, allocations: 106.8 kB / 357.8 MB, free: 4.836 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004442/0.124, allocations: 436.3 kB / 358.2 MB, free: 4.398 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.1241, allocations: 33.7 kB / 358.3 MB, free: 4.359 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.1242, allocations: 160 kB / 358.4 MB, free: 4.199 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.209e-05/0.1242, allocations: 47.44 kB / 358.5 MB, free: 4.152 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.762e-06/0.1242, allocations: 0 / 358.5 MB, free: 4.152 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1244, allocations: 346.8 kB / 358.8 MB, free: 3.805 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.1245, allocations: 43.97 kB / 358.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001386/0.1246, allocations: 97.98 kB / 358.9 MB, free: 3.645 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000101/0.1247, allocations: 51.92 kB / 359 MB, free: 3.594 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1248, allocations: 0 / 359 MB, free: 3.594 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002943/0.125, allocations: 179 kB / 359.2 MB, free: 3.414 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.1251, allocations: 4 kB / 359.2 MB, free: 3.41 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.1251, allocations: 4.062 kB / 359.2 MB, free: 3.406 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.1251, allocations: 4 kB / 359.2 MB, free: 3.402 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.1252, allocations: 23.98 kB / 359.2 MB, free: 3.379 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.8e-06/0.1252, allocations: 0 / 359.2 MB, free: 3.379 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.994e-05/0.1254, allocations: 12 kB / 359.2 MB, free: 3.367 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.592e-05/0.1254, allocations: 7.953 kB / 359.2 MB, free: 3.359 MB / 286.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.0001863/0.1256, allocations: 171.5 kB / 359.4 MB, free: 3.184 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.917e-05/0.1256, allocations: 27.62 kB / 359.4 MB, free: 3.156 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.86e-05/0.1257, allocations: 38.94 kB / 359.4 MB, free: 3.117 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1257, allocations: 4 kB / 359.4 MB, free: 3.113 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.1257, allocations: 0 / 359.4 MB, free: 3.113 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.1257, allocations: 3.984 kB / 359.5 MB, free: 3.109 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002649/0.126, allocations: 309.2 kB / 359.8 MB, free: 2.758 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.126, allocations: 0 / 359.8 MB, free: 2.758 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.954e-05/0.1261, allocations: 15.92 kB / 359.8 MB, free: 2.742 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1261, allocations: 0 / 359.8 MB, free: 2.742 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.1261, allocations: 8 kB / 359.8 MB, free: 2.734 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1261, allocations: 0 / 359.8 MB, free: 2.734 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1261, allocations: 4 kB / 359.8 MB, free: 2.73 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003201/0.1264, allocations: 200.6 kB / 360 MB, free: 2.516 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.531e-05/0.1265, allocations: 116.7 kB / 360.1 MB, free: 2.383 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.802e-05/0.1266, allocations: 0 / 360.1 MB, free: 2.383 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.884e-05/0.1267, allocations: 19.92 kB / 360.1 MB, free: 2.363 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.318e-05/0.1267, allocations: 11.98 kB / 360.1 MB, free: 2.352 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.16e-05/0.1268, allocations: 15.98 kB / 360.1 MB, free: 2.336 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000326/0.1271, allocations: 307 kB / 360.4 MB, free: 2.039 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1271, allocations: 0 / 360.4 MB, free: 2.039 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002819/0.1274, allocations: 55.92 kB / 360.5 MB, free: 1.984 MB / 286.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.001422/0.1288, allocations: 1.061 MB / 361.6 MB, free: 1.059 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003039/0.1291, allocations: 115.9 kB / 361.7 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1291, allocations: 0 / 361.7 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001223/0.1293, allocations: 58.88 kB / 361.7 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003781/0.1297, allocations: 70.34 kB / 361.8 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002701/0.1324, allocations: 1.91 MB / 363.7 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005729/0.133, allocations: 0.7796 MB / 364.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000132/0.1331, allocations: 38.27 kB / 364.5 MB, free: 14.01 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.1333, allocations: 95.39 kB / 364.6 MB, free: 13.91 MB / 302.1 MB Notification: Performance of SimCode: time 1.823e-06/0.1333, allocations: 4 kB / 364.6 MB, free: 13.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01929/0.1526, allocations: 6.392 MB / 371 MB, free: 7.652 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002011/0.1528, allocations: 217.9 kB / 371.2 MB, free: 7.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.923/2.075, allocations: 0 / 371.2 MB, free: 7.41 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