Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001546/0.001551, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.131/2.131, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001163/0.001162, allocations: 98.81 kB / 270.9 MB, free: 13.36 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003918/0.0003918, allocations: 8 kB / 327 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1019, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003279/0.1052, allocations: 1.634 MB / 376.3 MB, free: 13.69 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003621/0.1089, allocations: 0.9449 MB / 377.2 MB, free: 12.74 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002492/0.1092, allocations: 7.938 kB / 377.2 MB, free: 12.73 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001711/0.1109, allocations: 259.4 kB / 377.5 MB, free: 12.48 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001072/0.1121, allocations: 175.5 kB / 377.6 MB, free: 12.3 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00166/0.1137, allocations: 227.5 kB / 377.9 MB, free: 12.08 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007537/0.1145, allocations: 211.5 kB / 378.1 MB, free: 11.88 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002471/0.1148, allocations: 48.56 kB / 378.1 MB, free: 11.83 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003827/0.1152, allocations: 119.5 kB / 378.2 MB, free: 11.71 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003382/0.1156, allocations: 115.6 kB / 378.3 MB, free: 11.6 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.198e-05/0.1157, allocations: 8 kB / 378.4 MB, free: 11.59 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00033/0.116, allocations: 51.89 kB / 378.4 MB, free: 11.54 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001948/0.1162, allocations: 71.75 kB / 378.5 MB, free: 11.47 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001545/0.1164, allocations: 69.52 kB / 378.5 MB, free: 11.39 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008951/0.1173, allocations: 259.7 kB / 378.8 MB, free: 11.14 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.269e-06/0.1174, allocations: 0 / 378.8 MB, free: 11.14 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.1174, allocations: 0 / 378.8 MB, free: 11.14 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.1174, allocations: 0 / 378.8 MB, free: 11.14 MB / 282.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.001799/0.1192, allocations: 0.6105 MB / 379.4 MB, free: 10.47 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.961e-05/0.1193, allocations: 12.03 kB / 379.4 MB, free: 10.46 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001341/0.1195, allocations: 50.48 kB / 379.5 MB, free: 10.4 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.1197, allocations: 27.62 kB / 379.5 MB, free: 10.37 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.1207, allocations: 319 kB / 379.8 MB, free: 10.02 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.599e-05/0.1208, allocations: 8 kB / 379.8 MB, free: 10.02 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.33e-05/0.1209, allocations: 11.98 kB / 379.8 MB, free: 10 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006616/0.1215, allocations: 144.1 kB / 380 MB, free: 9.848 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.598e-05/0.1216, allocations: 0 / 380 MB, free: 9.848 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.617e-05/0.1217, allocations: 15.97 kB / 380 MB, free: 9.832 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.1217, allocations: 0 / 380 MB, free: 9.832 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004278/0.1221, allocations: 67.83 kB / 380 MB, free: 9.766 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001614/0.1238, allocations: 0.4886 MB / 380.5 MB, free: 9.227 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007649/0.1246, allocations: 130.7 kB / 380.7 MB, free: 9.09 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.282e-05/0.1247, allocations: 4 kB / 380.7 MB, free: 9.086 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005206/0.1252, allocations: 116.1 kB / 380.8 MB, free: 8.961 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 4.548e-06/0.1252, allocations: 0 / 380.8 MB, free: 8.961 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.001262/0.1265, allocations: 214.5 kB / 381 MB, free: 8.746 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.1267, allocations: 110.8 kB / 381.1 MB, free: 8.613 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/0.1279, allocations: 428.4 kB / 381.5 MB, free: 8.18 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.784e-05/0.128, allocations: 29.7 kB / 381.5 MB, free: 8.145 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000258/0.1283, allocations: 222.4 kB / 381.8 MB, free: 7.926 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.928e-05/0.1284, allocations: 39.45 kB / 381.8 MB, free: 7.887 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.149e-05/0.1285, allocations: 4 kB / 381.8 MB, free: 7.883 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001938/0.1287, allocations: 314.8 kB / 382.1 MB, free: 7.566 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003096/0.129, allocations: 47.91 kB / 382.2 MB, free: 7.52 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003825/0.1294, allocations: 93.98 kB / 382.3 MB, free: 7.406 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003383/0.1298, allocations: 56.48 kB / 382.3 MB, free: 7.352 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.1298, allocations: 0 / 382.3 MB, free: 7.352 MB / 282.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0007734/0.1306, allocations: 157.3 kB / 382.5 MB, free: 7.191 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.793e-05/0.1307, allocations: 11.98 kB / 382.5 MB, free: 7.18 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.1307, allocations: 3.984 kB / 382.5 MB, free: 7.176 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/0.1307, allocations: 64 / 382.5 MB, free: 7.176 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002934/0.131, allocations: 24 kB / 382.5 MB, free: 7.152 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.1311, allocations: 3.984 kB / 382.5 MB, free: 7.148 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003511/0.1314, allocations: 19.94 kB / 382.5 MB, free: 7.129 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.833e-05/0.1315, allocations: 4 kB / 382.5 MB, free: 7.125 MB / 282.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.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.0004023/0.1319, allocations: 171.5 kB / 382.7 MB, free: 6.949 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.132, allocations: 35.58 kB / 382.7 MB, free: 6.914 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001534/0.1322, allocations: 38.94 kB / 382.8 MB, free: 6.875 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.1322, allocations: 0 / 382.8 MB, free: 6.875 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.1323, allocations: 0 / 382.8 MB, free: 6.875 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.1323, allocations: 0 / 382.8 MB, free: 6.875 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006074/0.1329, allocations: 301.4 kB / 383.1 MB, free: 6.531 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.133, allocations: 0 / 383.1 MB, free: 6.531 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001216/0.1331, allocations: 15.92 kB / 383.1 MB, free: 6.516 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.408e-05/0.1331, allocations: 3.953 kB / 383.1 MB, free: 6.512 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.172e-05/0.1332, allocations: 4 kB / 383.1 MB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.63e-06/0.1332, allocations: 0 / 383.1 MB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.1332, allocations: 0 / 383.1 MB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009324/0.1342, allocations: 204.6 kB / 383.3 MB, free: 6.289 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001996/0.1344, allocations: 116.7 kB / 383.4 MB, free: 6.156 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.1345, allocations: 7.953 kB / 383.4 MB, free: 6.148 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002488/0.1348, allocations: 11.98 kB / 383.4 MB, free: 6.137 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.1349, allocations: 15.92 kB / 383.4 MB, free: 6.121 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.115e-05/0.135, allocations: 8 kB / 383.4 MB, free: 6.113 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008764/0.1359, allocations: 315 kB / 383.7 MB, free: 5.809 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.52e-07/0.1359, allocations: 0 / 383.7 MB, free: 5.809 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007716/0.1367, allocations: 56.23 kB / 383.8 MB, free: 5.754 MB / 282.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.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.003303/0.14, allocations: 1.06 MB / 384.9 MB, free: 4.676 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007682/0.1408, allocations: 119.8 kB / 385 MB, free: 4.559 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.1409, allocations: 0 / 385 MB, free: 4.559 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003422/0.1412, allocations: 59.92 kB / 385 MB, free: 4.5 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/0.1424, allocations: 62.2 kB / 385.1 MB, free: 4.438 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006089/0.1485, allocations: 1.935 MB / 387 MB, free: 2.43 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006189/0.1492, allocations: 0.7874 MB / 387.8 MB, free: 1.617 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002994/0.1495, allocations: 91.41 kB / 387.9 MB, free: 1.527 MB / 282.7 MB Notification: Performance of SimCode: time 1.092e-06/0.1495, allocations: 0 / 387.9 MB, free: 1.527 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.073/3.222, allocations: 5.524 MB / 393.4 MB, free: 19.55 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat