Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001246/0.001246, allocations: 121.3 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001334/0.001334, allocations: 210.5 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.393/1.393, allocations: 230.4 MB / 254.7 MB, free: 14.85 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 71.83 kB / 373.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1037, allocations: 53.32 MB / 426.9 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003524/0.1073, allocations: 2.041 MB / 428.9 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002149/0.1094, allocations: 1.278 MB / 430.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.1095, allocations: 3.938 kB / 430.2 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008127/0.1103, allocations: 311.1 kB / 430.5 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005417/0.1109, allocations: 255.1 kB / 430.8 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005199/0.1114, allocations: 226.8 kB / 431 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000428/0.1118, allocations: 359.1 kB / 431.3 MB, free: 380 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.112, allocations: 36.73 kB / 431.4 MB, free: 340 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001942/0.1122, allocations: 147.4 kB / 431.5 MB, free: 192 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002069/0.1124, allocations: 167.3 kB / 431.7 MB, free: 24 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.918e-05/0.1124, allocations: 20 kB / 431.7 MB, free: 4 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1802/0.2927, allocations: 82.98 kB / 431.8 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001329/0.2928, allocations: 85.72 kB / 431.9 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001521/0.2929, allocations: 130.4 kB / 432 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004774/0.2934, allocations: 368.9 kB / 432.3 MB, free: 7.895 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2934, allocations: 0 / 432.3 MB, free: 7.895 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2934, allocations: 1.25 kB / 432.3 MB, free: 7.895 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.2934, allocations: 0 / 432.3 MB, free: 7.895 MB / 350.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.0008907/0.2943, allocations: 0.6821 MB / 433 MB, free: 7.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.2944, allocations: 9.719 kB / 433 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.769e-05/0.2944, allocations: 43.86 kB / 433.1 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.999e-05/0.2945, allocations: 36.77 kB / 433.1 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003551/0.2948, allocations: 343.3 kB / 433.4 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.2948, allocations: 8.5 kB / 433.5 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.265e-05/0.2949, allocations: 14.11 kB / 433.5 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002526/0.2951, allocations: 152.1 kB / 433.6 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.2951, allocations: 0.625 kB / 433.6 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.2951, allocations: 3.781 kB / 433.6 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.2951, allocations: 2.344 kB / 433.6 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001552/0.2953, allocations: 77.55 kB / 433.7 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005775/0.2959, allocations: 495.9 kB / 434.2 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002588/0.2961, allocations: 127.5 kB / 434.3 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.706e-05/0.2962, allocations: 45.5 kB / 434.4 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.679e-05/0.2963, allocations: 2.188 kB / 434.4 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001906/0.2964, allocations: 108.5 kB / 434.5 MB, free: 6.609 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.334e-06/0.2964, allocations: 4.125 kB / 434.5 MB, free: 6.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004299/0.2969, allocations: 229.7 kB / 434.7 MB, free: 6.551 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.2969, allocations: 106.7 kB / 434.8 MB, free: 6.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004868/0.2974, allocations: 457.5 kB / 435.2 MB, free: 6.305 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.2974, allocations: 30.27 kB / 435.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.896e-05/0.2975, allocations: 169.4 kB / 435.4 MB, free: 6.184 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.331e-05/0.2975, allocations: 42.91 kB / 435.5 MB, free: 6.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.837e-05/0.2976, allocations: 41.52 kB / 435.5 MB, free: 6.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.78e-05/0.2977, allocations: 347.1 kB / 435.9 MB, free: 5.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.827e-05/0.2978, allocations: 43.75 kB / 435.9 MB, free: 5.832 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.2979, allocations: 105.9 kB / 436 MB, free: 5.777 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001775/0.2981, allocations: 107.3 kB / 436.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2981, allocations: 3.375 kB / 436.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002824/0.2984, allocations: 186.2 kB / 436.3 MB, free: 5.699 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.2984, allocations: 5.594 kB / 436.3 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.2984, allocations: 5.312 kB / 436.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.2984, allocations: 2.281 kB / 436.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.2985, allocations: 28.52 kB / 436.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.2985, allocations: 1.312 kB / 436.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.777e-05/0.2986, allocations: 13.27 kB / 436.3 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.2986, allocations: 8.859 kB / 436.4 MB, free: 5.691 MB / 350.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 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001253/0.2987, allocations: 169.9 kB / 436.5 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.098e-05/0.2988, allocations: 34.88 kB / 436.6 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.953e-05/0.2989, allocations: 41.19 kB / 436.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.2989, allocations: 2.062 kB / 436.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2989, allocations: 4.094 kB / 436.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/0.2989, allocations: 0 / 436.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000206/0.2991, allocations: 312.6 kB / 436.9 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2991, allocations: 3.938 kB / 436.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.567e-05/0.2991, allocations: 12.98 kB / 436.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2991, allocations: 1.562 kB / 436.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.2991, allocations: 6.234 kB / 436.9 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.2991, allocations: 1.094 kB / 436.9 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2991, allocations: 3.875 kB / 436.9 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002927/0.2994, allocations: 203.2 kB / 437.1 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.966e-05/0.2995, allocations: 103.5 kB / 437.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.292e-05/0.2995, allocations: 11.52 kB / 437.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.052e-05/0.2996, allocations: 10.75 kB / 437.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.175e-05/0.2997, allocations: 15.36 kB / 437.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.726e-05/0.2997, allocations: 11.23 kB / 437.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003051/0.3, allocations: 334.5 kB / 437.6 MB, free: 5.066 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3, allocations: 0 / 437.6 MB, free: 5.066 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002817/0.3003, allocations: 55.91 kB / 437.7 MB, free: 5.059 MB / 350.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001762/0.302, allocations: 1.069 MB / 438.7 MB, free: 4.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002892/0.3023, allocations: 120.2 kB / 438.9 MB, free: 4.379 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3023, allocations: 0 / 438.9 MB, free: 4.379 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.3024, allocations: 58.53 kB / 438.9 MB, free: 4.379 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004032/0.3028, allocations: 68.84 kB / 439 MB, free: 4.379 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0031/0.3059, allocations: 2.862 MB / 441.8 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002182/0.3061, allocations: 0.7789 MB / 442.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001452/0.3063, allocations: 42.56 kB / 442.7 MB, free: 2.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.3064, allocations: 101.2 kB / 442.8 MB, free: 2.309 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3064, allocations: 1.188 kB / 442.8 MB, free: 2.309 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03196/0.3384, allocations: 7.406 MB / 450.2 MB, free: 1.199 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.087/8.425, allocations: 12.97 kB / 450.2 MB, free: 1.188 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00199601 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.68551856186241] Failed to read output from testmodel.py, exit status != 0: ['time', 'Pre1.u', 'table1.y', 'table2.y'] 8.548109628260136 8.563787711 8.266851084 Calling exit ...