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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009736/0.0009736, allocations: 98.75 kB / 17 MB, free: 6.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001198/0.001198, allocations: 194.7 kB / 17.91 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002562/0.0002563, allocations: 8 kB / 306.8 MB, free: 1.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1223, allocations: 51.49 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002296/0.1247, allocations: 1.697 MB / 360 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001939/0.1266, allocations: 1.217 MB / 361.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.1268, allocations: 0 / 361.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007747/0.1275, allocations: 279.4 kB / 361.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004472/0.128, allocations: 207.4 kB / 361.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005826/0.1286, allocations: 254.7 kB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003295/0.1289, allocations: 323.1 kB / 362.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.1291, allocations: 60.86 kB / 362.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001645/0.1292, allocations: 119.5 kB / 362.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001599/0.1294, allocations: 139.4 kB / 362.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.395e-05/0.1294, allocations: 4 kB / 362.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001344/0.1296, allocations: 67.89 kB / 362.6 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.89e-05/0.1297, allocations: 67.75 kB / 362.7 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.7e-05/0.1298, allocations: 73.5 kB / 362.8 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002795/0.13, allocations: 271.7 kB / 363 MB, free: 9.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.1301, allocations: 4 kB / 363 MB, free: 9.227 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1301, allocations: 0 / 363 MB, free: 9.227 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1301, allocations: 0 / 363 MB, free: 9.227 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.0008222/0.1309, allocations: 0.6182 MB / 363.7 MB, free: 8.547 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.131, allocations: 12.03 kB / 363.7 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.314e-05/0.131, allocations: 42.55 kB / 363.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.414e-05/0.1311, allocations: 31.62 kB / 363.7 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004354/0.1315, allocations: 329.3 kB / 364.1 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/0.1315, allocations: 8 kB / 364.1 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.346e-05/0.1316, allocations: 15.95 kB / 364.1 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002881/0.1319, allocations: 155.4 kB / 364.2 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.1319, allocations: 0 / 364.2 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.1319, allocations: 4 kB / 364.2 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.1319, allocations: 3.938 kB / 364.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001585/0.1321, allocations: 67.97 kB / 364.3 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006917/0.1328, allocations: 0.4925 MB / 364.8 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000284/0.1331, allocations: 134.8 kB / 364.9 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.1332, allocations: 56.77 kB / 365 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.648e-05/0.1332, allocations: 4 kB / 365 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002162/0.1335, allocations: 111.3 kB / 365.1 MB, free: 6.961 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.1335, allocations: 0 / 365.1 MB, free: 6.961 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004429/0.1339, allocations: 215.5 kB / 365.3 MB, free: 6.746 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.217e-05/0.134, allocations: 110.8 kB / 365.4 MB, free: 6.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004669/0.1345, allocations: 461.4 kB / 365.9 MB, free: 6.156 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/0.1345, allocations: 33.7 kB / 365.9 MB, free: 6.117 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.1346, allocations: 168 kB / 366.1 MB, free: 5.949 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.859e-05/0.1347, allocations: 39.55 kB / 366.1 MB, free: 5.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.624e-06/0.1347, allocations: 4 kB / 366.1 MB, free: 5.906 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.1348, allocations: 342.8 kB / 366.4 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.627e-05/0.1349, allocations: 43.98 kB / 366.5 MB, free: 5.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.135, allocations: 102.7 kB / 366.6 MB, free: 5.398 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/0.1352, allocations: 43.98 kB / 366.6 MB, free: 5.355 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1352, allocations: 0 / 366.6 MB, free: 5.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002813/0.1354, allocations: 183.9 kB / 366.8 MB, free: 5.172 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.1355, allocations: 11.95 kB / 366.8 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.1355, allocations: 0 / 366.8 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.1355, allocations: 7.922 kB / 366.8 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.1356, allocations: 20 kB / 366.8 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.573e-06/0.1356, allocations: 0 / 366.8 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.732e-05/0.1357, allocations: 15.98 kB / 366.9 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.1358, allocations: 8 kB / 366.9 MB, free: 5.109 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.0001562/0.1359, allocations: 179.6 kB / 367 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.242e-05/0.136, allocations: 31.62 kB / 367.1 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.837e-05/0.136, allocations: 38.92 kB / 367.1 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.136, allocations: 4 kB / 367.1 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.1361, allocations: 0 / 367.1 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1361, allocations: 0 / 367.1 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002497/0.1363, allocations: 309.3 kB / 367.4 MB, free: 4.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1363, allocations: 0 / 367.4 MB, free: 4.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.671e-05/0.1364, allocations: 8 kB / 367.4 MB, free: 4.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1364, allocations: 4 kB / 367.4 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.1364, allocations: 8 kB / 367.4 MB, free: 4.473 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.1364, allocations: 7.938 kB / 367.4 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1364, allocations: 0 / 367.4 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003055/0.1367, allocations: 200.6 kB / 367.6 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.903e-05/0.1368, allocations: 112.7 kB / 367.8 MB, free: 4.121 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.078e-05/0.1369, allocations: 8 kB / 367.8 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.149e-05/0.1369, allocations: 12 kB / 367.8 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.428e-05/0.137, allocations: 19.92 kB / 367.8 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.137, allocations: 4 kB / 367.8 MB, free: 4.078 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003297/0.1374, allocations: 331.1 kB / 368.1 MB, free: 3.758 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1374, allocations: 0 / 368.1 MB, free: 3.758 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002808/0.1377, allocations: 63.83 kB / 368.2 MB, free: 3.695 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.001371/0.139, allocations: 1.057 MB / 369.2 MB, free: 2.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002659/0.1393, allocations: 114.3 kB / 369.4 MB, free: 2.641 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1393, allocations: 0 / 369.4 MB, free: 2.641 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001176/0.1395, allocations: 59.92 kB / 369.4 MB, free: 2.582 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003748/0.1398, allocations: 80.91 kB / 369.5 MB, free: 2.508 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002305/0.1421, allocations: 1.695 MB / 371.2 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1764/0.3186, allocations: 0.7756 MB / 372 MB, free: 19.06 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003111/0.3189, allocations: 44.41 kB / 372 MB, free: 19.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002452/0.3192, allocations: 97.98 kB / 372.1 MB, free: 19.05 MB / 302.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3192, allocations: 0 / 372.1 MB, free: 19.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02338/0.3426, allocations: 6.596 MB / 378.7 MB, free: 18.5 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001837/0.3428, allocations: 215.2 kB / 378.9 MB, free: 18.26 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.984/2.327, allocations: 0 / 378.9 MB, free: 18.26 MB / 302.1 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