Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_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.00105/0.00105, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.463/1.463, allocations: 205.4 MB / 223.1 MB, free: 9.113 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.0008118/0.0008116, allocations: 93.11 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002455/0.0002455, allocations: 8 kB / 328.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.231, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08845/0.3195, allocations: 79 MB / 454.9 MB, free: 1.645 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002152/0.3197, allocations: 75.97 kB / 455 MB, free: 1.57 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02361/0.3433, allocations: 9.04 MB / 464 MB, free: 8.523 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.3434, allocations: 0 / 464 MB, free: 8.523 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.209e-05/0.3434, allocations: 7.938 kB / 464 MB, free: 8.516 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.0008327/0.3442, allocations: 0.631 MB / 464.7 MB, free: 7.824 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.3443, allocations: 11.97 kB / 464.7 MB, free: 7.812 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.877e-05/0.3444, allocations: 50.48 kB / 464.7 MB, free: 7.754 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.202e-05/0.3444, allocations: 31.62 kB / 464.8 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005453/0.345, allocations: 334.9 kB / 465.1 MB, free: 7.359 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.345, allocations: 12 kB / 465.1 MB, free: 7.348 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.443e-05/0.3451, allocations: 19.94 kB / 465.1 MB, free: 7.328 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002751/0.3453, allocations: 150.6 kB / 465.3 MB, free: 7.168 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.3454, allocations: 0 / 465.3 MB, free: 7.168 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.3454, allocations: 4 kB / 465.3 MB, free: 7.164 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.3454, allocations: 0 / 465.3 MB, free: 7.164 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001708/0.3456, allocations: 79.81 kB / 465.3 MB, free: 7.086 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006974/0.3463, allocations: 0.5043 MB / 465.8 MB, free: 6.531 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003035/0.3466, allocations: 138.7 kB / 466 MB, free: 6.387 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.3466, allocations: 4 kB / 466 MB, free: 6.383 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001971/0.3468, allocations: 115.3 kB / 466.1 MB, free: 6.258 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.3468, allocations: 0 / 466.1 MB, free: 6.258 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004586/0.3473, allocations: 228.9 kB / 466.3 MB, free: 6.031 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.396e-05/0.3474, allocations: 110.8 kB / 466.4 MB, free: 5.898 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000444/0.3478, allocations: 391.6 kB / 466.8 MB, free: 5.512 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.664e-05/0.3479, allocations: 33.7 kB / 466.8 MB, free: 5.473 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.348, allocations: 164 kB / 467 MB, free: 5.309 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.109e-05/0.348, allocations: 47.44 kB / 467 MB, free: 5.262 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.985e-06/0.348, allocations: 4 kB / 467.1 MB, free: 5.258 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.3482, allocations: 338.8 kB / 467.4 MB, free: 4.918 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.3483, allocations: 47.97 kB / 467.4 MB, free: 4.871 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.3484, allocations: 106.5 kB / 467.5 MB, free: 4.746 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001043/0.3485, allocations: 53.06 kB / 467.6 MB, free: 4.695 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3485, allocations: 0 / 467.6 MB, free: 4.695 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000298/0.3489, allocations: 181.1 kB / 467.8 MB, free: 4.512 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.3489, allocations: 8 kB / 467.8 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.3489, allocations: 4.062 kB / 467.8 MB, free: 4.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.3489, allocations: 3.953 kB / 467.8 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.349, allocations: 27.98 kB / 467.8 MB, free: 4.469 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.3491, allocations: 7.875 kB / 467.8 MB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.3492, allocations: 8 kB / 467.8 MB, free: 4.453 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.3492, allocations: 12 kB / 467.8 MB, free: 4.441 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 () * 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.0001796/0.3494, allocations: 169 kB / 468 MB, free: 4.266 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.89e-05/0.3494, allocations: 35.62 kB / 468 MB, free: 4.23 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003959/0.3498, allocations: 200.4 kB / 468.2 MB, free: 4.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.3499, allocations: 7.953 kB / 468.2 MB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3499, allocations: 0 / 468.2 MB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.3499, allocations: 3.984 kB / 468.2 MB, free: 4.008 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003209/0.3502, allocations: 321.4 kB / 468.6 MB, free: 3.645 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3502, allocations: 0 / 468.6 MB, free: 3.645 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.113e-05/0.3503, allocations: 12 kB / 468.6 MB, free: 3.633 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.3503, allocations: 0 / 468.6 MB, free: 3.633 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.984e-05/0.3503, allocations: 11.98 kB / 468.6 MB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.3503, allocations: 4 kB / 468.6 MB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3503, allocations: 3.953 kB / 468.6 MB, free: 3.613 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003515/0.3507, allocations: 210.8 kB / 468.8 MB, free: 3.391 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001359/0.3508, allocations: 120.7 kB / 468.9 MB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.847e-05/0.3509, allocations: 11.98 kB / 468.9 MB, free: 3.242 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.12e-05/0.351, allocations: 12 kB / 468.9 MB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.754e-05/0.3511, allocations: 15.97 kB / 468.9 MB, free: 3.215 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.3511, allocations: 11.95 kB / 469 MB, free: 3.203 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003658/0.3515, allocations: 311 kB / 469.3 MB, free: 2.902 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3515, allocations: 0 / 469.3 MB, free: 2.902 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003417/0.3518, allocations: 68.17 kB / 469.3 MB, free: 2.836 MB / 346.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) * Number of clocked states: 0 () * 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.001388/0.3532, allocations: 1.08 MB / 470.4 MB, free: 1.758 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003495/0.3536, allocations: 135.8 kB / 470.5 MB, free: 1.625 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3536, allocations: 4 kB / 470.5 MB, free: 1.621 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001378/0.3537, allocations: 63.91 kB / 470.6 MB, free: 1.559 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003861/0.3541, allocations: 74.22 kB / 470.7 MB, free: 1.484 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002428/0.3566, allocations: 1.955 MB / 472.6 MB, free: 15.47 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003379/0.3569, allocations: 0.7833 MB / 473.4 MB, free: 14.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001303/0.3571, allocations: 50.27 kB / 473.5 MB, free: 14.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.3572, allocations: 95.41 kB / 473.6 MB, free: 14.51 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3572, allocations: 0 / 473.6 MB, free: 14.51 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01835/0.3756, allocations: 6.723 MB / 480.3 MB, free: 7.789 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002403/0.3759, allocations: 212.4 kB / 480.5 MB, free: 7.539 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.863/2.239, allocations: 0 / 480.5 MB, free: 7.539 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat