Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 119.4 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 200.3 kB / 20.74 MB, free: 2.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.445/1.445, allocations: 230.6 MB / 254.1 MB, free: 15.08 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 47.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.105, allocations: 53.33 MB / 426.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003511/0.1086, allocations: 2.051 MB / 428.3 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00233/0.1109, allocations: 1.278 MB / 429.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.111, allocations: 4 kB / 429.6 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009414/0.112, allocations: 307.1 kB / 429.9 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005947/0.1125, allocations: 259.1 kB / 430.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005878/0.1131, allocations: 222.2 kB / 430.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004283/0.1136, allocations: 363 kB / 430.8 MB, free: 328 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.1137, allocations: 40.72 kB / 430.8 MB, free: 284 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001879/0.1139, allocations: 151.4 kB / 430.9 MB, free: 132 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1925/0.3064, allocations: 158.1 kB / 431.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.763e-05/0.3065, allocations: 19.69 kB / 431.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003059/0.3068, allocations: 82.86 kB / 431.2 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.3069, allocations: 89.88 kB / 431.3 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001745/0.3071, allocations: 133.4 kB / 431.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005904/0.3077, allocations: 366.5 kB / 431.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3077, allocations: 0.9688 kB / 431.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3077, allocations: 0.75 kB / 431.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.439e-05/0.3077, allocations: 1.438 kB / 431.8 MB, free: 7.848 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.001067/0.3088, allocations: 0.6819 MB / 432.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.45e-05/0.3088, allocations: 10.69 kB / 432.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.529e-05/0.3088, allocations: 47.97 kB / 432.5 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.785e-05/0.3089, allocations: 37.64 kB / 432.6 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004326/0.3094, allocations: 339.6 kB / 432.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.3094, allocations: 9.594 kB / 432.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.416e-05/0.3094, allocations: 12.39 kB / 432.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003152/0.3097, allocations: 150.2 kB / 433.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.3097, allocations: 0 / 433.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.25e-05/0.3098, allocations: 6.406 kB / 433.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.3098, allocations: 2.031 kB / 433.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.3099, allocations: 75.55 kB / 433.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006653/0.3106, allocations: 499.1 kB / 433.6 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003297/0.3109, allocations: 128.5 kB / 433.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.311, allocations: 42.27 kB / 433.8 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.464e-05/0.3111, allocations: 14.28 kB / 433.8 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002225/0.3113, allocations: 108 kB / 433.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.3113, allocations: 1.625 kB / 433.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004882/0.3118, allocations: 217.9 kB / 434.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.3118, allocations: 107.7 kB / 434.2 MB, free: 6.383 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004929/0.3123, allocations: 462.3 kB / 434.7 MB, free: 6.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.3123, allocations: 32.02 kB / 434.7 MB, free: 6.234 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.3124, allocations: 168 kB / 434.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.932e-05/0.3125, allocations: 46.06 kB / 434.9 MB, free: 6.117 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.198e-05/0.3125, allocations: 41.34 kB / 435 MB, free: 6.102 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.585e-05/0.3126, allocations: 348.5 kB / 435.3 MB, free: 5.789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.3127, allocations: 43.22 kB / 435.3 MB, free: 5.789 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.3129, allocations: 100.4 kB / 435.4 MB, free: 5.734 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001894/0.3131, allocations: 105.1 kB / 435.5 MB, free: 5.711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.3131, allocations: 2.172 kB / 435.5 MB, free: 5.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003385/0.3134, allocations: 184.7 kB / 435.7 MB, free: 5.656 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.3134, allocations: 5.281 kB / 435.7 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.3134, allocations: 5.062 kB / 435.7 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.3134, allocations: 4.719 kB / 435.7 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.3136, allocations: 26.28 kB / 435.8 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.3136, allocations: 1.062 kB / 435.8 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.3137, allocations: 18.28 kB / 435.8 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.3137, allocations: 5.109 kB / 435.8 MB, free: 5.648 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.0001566/0.3139, allocations: 176.1 kB / 436 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.968e-05/0.3139, allocations: 32.16 kB / 436 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.615e-05/0.314, allocations: 38.88 kB / 436 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.314, allocations: 3.438 kB / 436 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.314, allocations: 0 / 436 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.314, allocations: 2 kB / 436 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002917/0.3143, allocations: 310.1 kB / 436.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3143, allocations: 0 / 436.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.147e-05/0.3143, allocations: 12.88 kB / 436.4 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.3143, allocations: 1.188 kB / 436.4 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.3144, allocations: 6.734 kB / 436.4 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.3144, allocations: 1.156 kB / 436.4 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3144, allocations: 0 / 436.4 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003789/0.3147, allocations: 205.1 kB / 436.6 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.861e-05/0.3148, allocations: 104.7 kB / 436.7 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.871e-05/0.3149, allocations: 11.52 kB / 436.7 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.772e-05/0.315, allocations: 12.64 kB / 436.7 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.957e-05/0.315, allocations: 16.3 kB / 436.7 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-05/0.3151, allocations: 7.656 kB / 436.7 MB, free: 5.105 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004331/0.3155, allocations: 330.6 kB / 437 MB, free: 5.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3155, allocations: 0 / 437 MB, free: 5.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003247/0.3158, allocations: 62.2 kB / 437.1 MB, free: 5.008 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.001967/0.3178, allocations: 1.071 MB / 438.2 MB, free: 4.328 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003965/0.3182, allocations: 111.3 kB / 438.3 MB, free: 4.328 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3182, allocations: 0 / 438.3 MB, free: 4.328 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001477/0.3183, allocations: 53.97 kB / 438.3 MB, free: 4.328 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005369/0.3189, allocations: 88.47 kB / 438.4 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003994/0.3229, allocations: 2.857 MB / 441.3 MB, free: 2.953 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002628/0.3231, allocations: 0.7822 MB / 442.1 MB, free: 2.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001831/0.3233, allocations: 50.81 kB / 442.1 MB, free: 2.227 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001575/0.3235, allocations: 95.02 kB / 442.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3235, allocations: 0 / 442.2 MB, free: 2.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03271/0.3562, allocations: 7.396 MB / 449.6 MB, free: 1.043 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.177/8.533, allocations: 5.094 kB / 449.6 MB, free: 1.039 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00199601 Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Pre1.u in file Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable Pre1.u from file Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table1.y in file Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table1.y from file Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table2.y in file Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table2.y from file Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.150105909997365]