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.001651/0.001651, allocations: 112.2 kB / 20.43 MB, free: 1.457 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.001891/0.001891, allocations: 180.5 kB / 23.72 MB, free: 4.699 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.46/1.46, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.001598/0.001598, allocations: 43.92 kB / 370.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3013, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003543/0.3048, allocations: 2.015 MB / 424.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002032/0.3069, allocations: 1.161 MB / 425.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.307, allocations: 11.94 kB / 425.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008604/0.3078, allocations: 307.2 kB / 426.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004607/0.3083, allocations: 215.2 kB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006936/0.309, allocations: 297.3 kB / 426.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004295/0.3094, allocations: 335.2 kB / 426.9 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.3096, allocations: 44.56 kB / 427 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002169/0.3098, allocations: 143.5 kB / 427.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002086/0.31, allocations: 155.3 kB / 427.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.875e-05/0.31, allocations: 20 kB / 427.3 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001999/0.3102, allocations: 95.86 kB / 427.4 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.3103, allocations: 87.69 kB / 427.5 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000137/0.3105, allocations: 127.3 kB / 427.6 MB, free: 9.605 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004546/0.3109, allocations: 354.9 kB / 427.9 MB, free: 9.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3109, allocations: 0 / 427.9 MB, free: 9.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3109, allocations: 0 / 427.9 MB, free: 9.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.3109, allocations: 0 / 427.9 MB, free: 9.266 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.001016/0.312, allocations: 0.5972 MB / 428.5 MB, free: 8.625 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.312, allocations: 8.031 kB / 428.5 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.031e-05/0.312, allocations: 38.75 kB / 428.6 MB, free: 8.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.666e-05/0.3121, allocations: 44.69 kB / 428.6 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004355/0.3126, allocations: 262.1 kB / 428.9 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.686e-05/0.3126, allocations: 15.94 kB / 428.9 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.172e-05/0.3126, allocations: 15.98 kB / 428.9 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003067/0.3129, allocations: 143.7 kB / 429.1 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.3129, allocations: 0 / 429.1 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.441e-05/0.313, allocations: 11.98 kB / 429.1 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.313, allocations: 3.938 kB / 429.1 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001772/0.3131, allocations: 63.97 kB / 429.1 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007691/0.3139, allocations: 475.3 kB / 429.6 MB, free: 7.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003275/0.3142, allocations: 126.7 kB / 429.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/0.3144, allocations: 48.78 kB / 429.8 MB, free: 7.297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.018e-05/0.3144, allocations: 7.984 kB / 429.8 MB, free: 7.289 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002414/0.3146, allocations: 107.4 kB / 429.9 MB, free: 7.172 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.743e-06/0.3146, allocations: 0 / 429.9 MB, free: 7.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005008/0.3151, allocations: 221.2 kB / 430.1 MB, free: 6.949 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.195e-05/0.3152, allocations: 110.8 kB / 430.2 MB, free: 6.816 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004958/0.3157, allocations: 428.5 kB / 430.6 MB, free: 6.391 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/0.3157, allocations: 29.7 kB / 430.7 MB, free: 6.355 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.3159, allocations: 176 kB / 430.8 MB, free: 6.18 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.324e-05/0.3159, allocations: 35.72 kB / 430.9 MB, free: 6.145 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.593e-05/0.316, allocations: 41.7 kB / 430.9 MB, free: 6.098 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.3162, allocations: 350.8 kB / 431.2 MB, free: 5.746 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.3163, allocations: 43.94 kB / 431.3 MB, free: 5.703 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001689/0.3164, allocations: 117 kB / 431.4 MB, free: 5.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002171/0.3167, allocations: 106.4 kB / 431.5 MB, free: 5.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3167, allocations: 0 / 431.5 MB, free: 5.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000324/0.317, allocations: 177.3 kB / 431.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.317, allocations: 4 kB / 431.7 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.317, allocations: 4.062 kB / 431.7 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.317, allocations: 4 kB / 431.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.3171, allocations: 27.92 kB / 431.7 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.3171, allocations: 4 kB / 431.7 MB, free: 5.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.3172, allocations: 7.953 kB / 431.7 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.555e-05/0.3173, allocations: 15.98 kB / 431.7 MB, free: 5.215 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.0001912/0.3175, allocations: 167.5 kB / 431.9 MB, free: 5.043 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.03e-05/0.3175, allocations: 31.81 kB / 431.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003954/0.3179, allocations: 188.4 kB / 432.1 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.3179, allocations: 0 / 432.1 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3179, allocations: 0 / 432.1 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.3179, allocations: 4 kB / 432.1 MB, free: 4.812 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003244/0.3182, allocations: 280.4 kB / 432.4 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3182, allocations: 0 / 432.4 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.098e-05/0.3183, allocations: 7.938 kB / 432.4 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.3183, allocations: 4 kB / 432.4 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.3183, allocations: 7.984 kB / 432.4 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.3183, allocations: 4 kB / 432.4 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3183, allocations: 3.938 kB / 432.4 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000359/0.3187, allocations: 204.1 kB / 432.6 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.574e-05/0.3187, allocations: 27.75 kB / 432.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.621e-05/0.3188, allocations: 12 kB / 432.7 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.461e-05/0.3189, allocations: 11.92 kB / 432.7 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.939e-05/0.3189, allocations: 15.98 kB / 432.7 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.901e-05/0.3189, allocations: 11.98 kB / 432.7 MB, free: 4.176 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003656/0.3193, allocations: 311 kB / 433 MB, free: 3.871 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3193, allocations: 0 / 433 MB, free: 3.871 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002979/0.3196, allocations: 59.88 kB / 433.1 MB, free: 3.812 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.00209/0.3217, allocations: 1.05 MB / 434.1 MB, free: 2.895 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000312/0.322, allocations: 119.2 kB / 434.2 MB, free: 2.781 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.322, allocations: 0 / 434.2 MB, free: 2.781 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001312/0.3221, allocations: 51.92 kB / 434.3 MB, free: 2.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004245/0.3226, allocations: 77.3 kB / 434.4 MB, free: 2.656 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003621/0.3262, allocations: 2.817 MB / 437.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004293/0.3266, allocations: 0.7751 MB / 438 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001316/0.3267, allocations: 46.25 kB / 438 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.3269, allocations: 95.41 kB / 438.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3269, allocations: 0 / 438.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03616/0.363, allocations: 7.429 MB / 445.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.6, allocations: 4 kB / 445.5 MB, free: 7.445 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 & 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/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] "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: 14.303557421000733]