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.001166/0.001166, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001185/0.001185, allocations: 149.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9408/0.9408, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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 1.493e-06/1.493e-06, allocations: 0 / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.669e-05/1.818e-05, allocations: 5.516 kB / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00237/0.002389, allocations: 1.931 MB / 320.3 MB, free: 4.422 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.003638, allocations: 1.098 MB / 321.4 MB, free: 3.32 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.966e-05/0.003727, allocations: 4 kB / 321.5 MB, free: 3.316 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006498/0.004377, allocations: 311 kB / 321.8 MB, free: 3.012 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002762/0.004653, allocations: 219.2 kB / 322 MB, free: 2.797 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004009/0.005054, allocations: 297.9 kB / 322.3 MB, free: 2.512 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002681/0.005322, allocations: 347 kB / 322.6 MB, free: 2.172 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.005469, allocations: 40.48 kB / 322.6 MB, free: 2.129 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001641/0.005633, allocations: 187.5 kB / 322.8 MB, free: 1.945 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001318/0.005765, allocations: 143.6 kB / 323 MB, free: 1.805 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.62e-05/0.005791, allocations: 16 kB / 323 MB, free: 1.789 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001246/0.005916, allocations: 95.84 kB / 323.1 MB, free: 1.695 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.744e-05/0.005993, allocations: 79.7 kB / 323.1 MB, free: 1.617 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.973e-05/0.006063, allocations: 71.77 kB / 323.2 MB, free: 1.547 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003167/0.006379, allocations: 358.8 kB / 323.6 MB, free: 1.195 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.006383, allocations: 0 / 323.6 MB, free: 1.195 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.006383, allocations: 0 / 323.6 MB, free: 1.195 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.006389, allocations: 0 / 323.6 MB, free: 1.195 MB / 282.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.0007039/0.007092, allocations: 0.5965 MB / 324.2 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.007138, allocations: 8.922 kB / 324.2 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.245e-05/0.00718, allocations: 42.73 kB / 324.2 MB, free: 0.5 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.178e-05/0.007242, allocations: 32.75 kB / 324.2 MB, free: 480 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003687/0.007611, allocations: 261.7 kB / 324.5 MB, free: 196 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.007629, allocations: 12.12 kB / 324.5 MB, free: 184 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.934e-05/0.007648, allocations: 15.98 kB / 324.5 MB, free: 168 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001928/0.007841, allocations: 121.6 kB / 324.6 MB, free: 40 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.007851, allocations: 0 / 324.6 MB, free: 40 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.007863, allocations: 0 / 324.6 MB, free: 40 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.00787, allocations: 8 kB / 324.7 MB, free: 32 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001228/0.007992, allocations: 75.81 kB / 324.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005112/0.008504, allocations: 439.5 kB / 325.2 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/0.008713, allocations: 126.7 kB / 325.3 MB, free: 15.35 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.136e-05/0.008784, allocations: 52.83 kB / 325.3 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.008801, allocations: 0 / 325.3 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001689/0.00897, allocations: 123.2 kB / 325.5 MB, free: 15.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.312e-06/0.008971, allocations: 0 / 325.5 MB, free: 15.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003432/0.009314, allocations: 236.6 kB / 325.7 MB, free: 14.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/0.009344, allocations: 51.41 kB / 325.7 MB, free: 14.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003136/0.009657, allocations: 432.5 kB / 326.2 MB, free: 14.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.009675, allocations: 37.64 kB / 326.2 MB, free: 14.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.906e-05/0.009764, allocations: 168 kB / 326.4 MB, free: 14.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.987e-05/0.009794, allocations: 39.69 kB / 326.4 MB, free: 14.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.546e-05/0.009839, allocations: 41.7 kB / 326.4 MB, free: 14.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.058e-05/0.00993, allocations: 346.8 kB / 326.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.526e-05/0.009995, allocations: 47.98 kB / 326.8 MB, free: 13.74 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.01011, allocations: 143.7 kB / 327 MB, free: 13.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001285/0.01023, allocations: 110.5 kB / 327.1 MB, free: 13.46 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.01024, allocations: 0 / 327.1 MB, free: 13.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001975/0.01043, allocations: 185.3 kB / 327.3 MB, free: 13.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.01045, allocations: 8 kB / 327.3 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.01045, allocations: 4.094 kB / 327.3 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.033e-05/0.01046, allocations: 0 / 327.3 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.585e-05/0.01054, allocations: 23.98 kB / 327.3 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.01054, allocations: 3.938 kB / 327.3 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.756e-05/0.0106, allocations: 19.89 kB / 327.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.01061, allocations: 7.984 kB / 327.3 MB, free: 13.2 MB / 298.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 ($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.000114/0.01072, allocations: 167.8 kB / 327.5 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.722e-05/0.01075, allocations: 31.75 kB / 327.5 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000255/0.01101, allocations: 215.3 kB / 327.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.01101, allocations: 4 kB / 327.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/0.01102, allocations: 3.984 kB / 327.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.01102, allocations: 0 / 327.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001861/0.01121, allocations: 240.6 kB / 328 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.01121, allocations: 4 kB / 328 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.851e-05/0.01124, allocations: 11.98 kB / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.01124, allocations: 3.938 kB / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.01126, allocations: 8 kB / 328 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.01126, allocations: 0 / 328 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.01126, allocations: 4 kB / 328 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002176/0.01148, allocations: 220.7 kB / 328.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.819e-05/0.01151, allocations: 43.61 kB / 328.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.567e-05/0.01154, allocations: 4 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.119e-05/0.01158, allocations: 11.98 kB / 328.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.969e-05/0.01163, allocations: 11.98 kB / 328.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.01165, allocations: 11.98 kB / 328.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002162/0.01186, allocations: 311 kB / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01186, allocations: 0 / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002013/0.01206, allocations: 51.92 kB / 328.7 MB, free: 11.79 MB / 298.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.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 (17): * Single equations (assignments): 13 * 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.00103/0.01309, allocations: 1.121 MB / 329.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002185/0.01331, allocations: 123.9 kB / 329.9 MB, free: 10.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01331, allocations: 0 / 329.9 MB, free: 10.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.245e-05/0.0134, allocations: 59.91 kB / 330 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002558/0.01365, allocations: 72.2 kB / 330 MB, free: 10.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002291/0.01594, allocations: 2.877 MB / 332.9 MB, free: 7.617 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001097/0.01605, allocations: 173.8 kB / 333.1 MB, free: 7.426 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.135e-05/0.01613, allocations: 46.25 kB / 333.1 MB, free: 7.383 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.01624, allocations: 100.5 kB / 333.2 MB, free: 7.281 MB / 298.7 MB Notification: Performance of SimCode: time 5.72e-07/0.01624, allocations: 0 / 333.2 MB, free: 7.281 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01928/0.03552, allocations: 8.11 MB / 341.3 MB, free: 15.24 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.752/6.788, allocations: 4.75 kB / 341.3 MB, free: 15.24 MB / 314.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_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.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable Pre1.u from file Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table1.y in file Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table1.y from file Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table2.y in file Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table2.y from file Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.665487541817129]