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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 185.3 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 47.92 kB / 370.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2982, allocations: 52.18 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004142/0.3023, allocations: 2.034 MB / 424.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002275/0.3046, allocations: 1.165 MB / 425.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001746/0.3048, allocations: 3.938 kB / 425.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001033/0.3058, allocations: 311.2 kB / 426.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004671/0.3063, allocations: 207.2 kB / 426.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007727/0.307, allocations: 297.2 kB / 426.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004234/0.3075, allocations: 339.1 kB / 426.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.3076, allocations: 36.58 kB / 427 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002173/0.3078, allocations: 147.4 kB / 427.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003376/0.3082, allocations: 163.3 kB / 427.3 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.786e-05/0.3082, allocations: 16 kB / 427.3 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001907/0.3084, allocations: 87.92 kB / 427.4 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001193/0.3085, allocations: 99.61 kB / 427.5 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001432/0.3086, allocations: 123.3 kB / 427.6 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005142/0.3092, allocations: 354.9 kB / 427.9 MB, free: 9.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3092, allocations: 0 / 427.9 MB, free: 9.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3092, allocations: 0 / 427.9 MB, free: 9.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.3092, allocations: 0 / 427.9 MB, free: 9.25 MB / 334.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.001139/0.3103, allocations: 0.5855 MB / 428.5 MB, free: 8.621 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.3104, allocations: 15.97 kB / 428.5 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.798e-05/0.3104, allocations: 46.73 kB / 428.6 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.447e-05/0.3105, allocations: 32.7 kB / 428.6 MB, free: 8.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004975/0.311, allocations: 278 kB / 428.9 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.311, allocations: 4 kB / 428.9 MB, free: 8.223 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.726e-05/0.311, allocations: 15.98 kB / 428.9 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003088/0.3113, allocations: 147.6 kB / 429.1 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.3114, allocations: 4 kB / 429.1 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.3114, allocations: 4 kB / 429.1 MB, free: 8.043 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.3114, allocations: 8 kB / 429.1 MB, free: 8.035 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001694/0.3116, allocations: 67.95 kB / 429.1 MB, free: 7.969 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007735/0.3123, allocations: 463.3 kB / 429.6 MB, free: 7.473 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000359/0.3127, allocations: 134.6 kB / 429.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.3128, allocations: 52.78 kB / 429.8 MB, free: 7.277 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.3128, allocations: 0 / 429.8 MB, free: 7.277 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002492/0.3131, allocations: 115.3 kB / 429.9 MB, free: 7.152 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.3131, allocations: 0 / 429.9 MB, free: 7.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005625/0.3137, allocations: 213.3 kB / 430.1 MB, free: 6.938 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.945e-05/0.3137, allocations: 114.8 kB / 430.2 MB, free: 6.801 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005328/0.3143, allocations: 432.5 kB / 430.6 MB, free: 6.371 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.3143, allocations: 33.7 kB / 430.7 MB, free: 6.332 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.3144, allocations: 168 kB / 430.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.862e-05/0.3145, allocations: 39.72 kB / 430.9 MB, free: 6.125 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.195e-05/0.3146, allocations: 45.7 kB / 430.9 MB, free: 6.074 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.3148, allocations: 338.8 kB / 431.2 MB, free: 5.734 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.3149, allocations: 51.92 kB / 431.3 MB, free: 5.684 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001555/0.3151, allocations: 93.98 kB / 431.4 MB, free: 5.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002167/0.3153, allocations: 114 kB / 431.5 MB, free: 5.453 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3153, allocations: 4 kB / 431.5 MB, free: 5.449 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004069/0.3157, allocations: 181.3 kB / 431.7 MB, free: 5.266 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.3157, allocations: 4 kB / 431.7 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3157, allocations: 4 kB / 431.7 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.3157, allocations: 0 / 431.7 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.3158, allocations: 27.92 kB / 431.7 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.3158, allocations: 0 / 431.7 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.819e-05/0.3159, allocations: 15.95 kB / 431.7 MB, free: 5.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.316, allocations: 8.062 kB / 431.7 MB, free: 5.207 MB / 334.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.0001855/0.3161, allocations: 167.5 kB / 431.9 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.742e-05/0.3162, allocations: 31.81 kB / 431.9 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003887/0.3166, allocations: 192.4 kB / 432.1 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.3166, allocations: 4 kB / 432.1 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.3166, allocations: 0 / 432.1 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.3166, allocations: 0 / 432.1 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003203/0.3169, allocations: 276.4 kB / 432.4 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3169, allocations: 4 kB / 432.4 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.206e-05/0.317, allocations: 12 kB / 432.4 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.317, allocations: 0 / 432.4 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.317, allocations: 0 / 432.4 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.317, allocations: 0 / 432.4 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.317, allocations: 11.94 kB / 432.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004051/0.3174, allocations: 200.2 kB / 432.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.833e-05/0.3174, allocations: 35.73 kB / 432.6 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.199e-05/0.3175, allocations: 11.94 kB / 432.7 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.329e-05/0.3176, allocations: 11.98 kB / 432.7 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.846e-05/0.3176, allocations: 15.92 kB / 432.7 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.286e-05/0.3176, allocations: 8.047 kB / 432.7 MB, free: 4.168 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000406/0.3181, allocations: 311 kB / 433 MB, free: 3.863 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3181, allocations: 0 / 433 MB, free: 3.863 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002992/0.3184, allocations: 55.89 kB / 433.1 MB, free: 3.809 MB / 334.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,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 (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.002255/0.3206, allocations: 1.062 MB / 434.1 MB, free: 2.883 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003283/0.3209, allocations: 115.8 kB / 434.2 MB, free: 2.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.3209, allocations: 0 / 434.2 MB, free: 2.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001469/0.3211, allocations: 63.98 kB / 434.3 MB, free: 2.707 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004287/0.3215, allocations: 68.89 kB / 434.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003926/0.3254, allocations: 2.817 MB / 437.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.3259, allocations: 0.7751 MB / 438 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001429/0.326, allocations: 46.25 kB / 438 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.3262, allocations: 95.39 kB / 438.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3262, allocations: 0 / 438.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04074/0.3669, allocations: 7.429 MB / 445.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.73, allocations: 3.984 kB / 445.5 MB, free: 7.434 MB / 350.1 MB " [Timeout remaining time 648] (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/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 --stepSize=0.00199601 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.263199588051066]