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.001871/0.001871, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002224/0.002224, allocations: 192.5 kB / 23.71 MB, free: 4.406 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.45/1.45, allocations: 225.7 MB / 252.5 MB, free: 12.8 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.00169/0.00169, allocations: 47.92 kB / 370.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.242, allocations: 52.17 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003796/0.2458, allocations: 1.957 MB / 424.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00207/0.2478, allocations: 1.087 MB / 425.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001647/0.248, allocations: 7.938 kB / 425.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000911/0.2489, allocations: 311.2 kB / 425.9 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005524/0.2495, allocations: 211.2 kB / 426.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000778/0.2502, allocations: 293.3 kB / 426.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004614/0.2507, allocations: 339.2 kB / 426.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001531/0.2508, allocations: 40.38 kB / 426.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002307/0.2511, allocations: 151.4 kB / 426.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002512/0.2513, allocations: 151.4 kB / 427.1 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.654e-05/0.2514, allocations: 20 kB / 427.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002133/0.2516, allocations: 83.94 kB / 427.2 MB, free: 9.773 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.2517, allocations: 95.61 kB / 427.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.2518, allocations: 87.47 kB / 427.3 MB, free: 9.594 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004875/0.2523, allocations: 352.3 kB / 427.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.2523, allocations: 0 / 427.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2523, allocations: 8 kB / 427.7 MB, free: 9.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.2523, allocations: 0 / 427.7 MB, free: 9.242 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.001116/0.2535, allocations: 0.5894 MB / 428.3 MB, free: 8.609 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.2535, allocations: 12.03 kB / 428.3 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.611e-05/0.2536, allocations: 42.75 kB / 428.3 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.678e-05/0.2536, allocations: 36.69 kB / 428.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000458/0.2541, allocations: 274 kB / 428.6 MB, free: 8.223 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.2541, allocations: 8 kB / 428.7 MB, free: 8.215 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.685e-05/0.2541, allocations: 8 kB / 428.7 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002664/0.2544, allocations: 121.6 kB / 428.8 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.2544, allocations: 0 / 428.8 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/0.2544, allocations: 8 kB / 428.8 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.2544, allocations: 0 / 428.8 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.2546, allocations: 79.41 kB / 428.9 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007198/0.2553, allocations: 439.4 kB / 429.3 MB, free: 7.527 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003481/0.2557, allocations: 146.6 kB / 429.4 MB, free: 7.375 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.2558, allocations: 60.77 kB / 429.5 MB, free: 7.312 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.2558, allocations: 0 / 429.5 MB, free: 7.312 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002378/0.2561, allocations: 115.3 kB / 429.6 MB, free: 7.188 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.2561, allocations: 0 / 429.6 MB, free: 7.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005725/0.2566, allocations: 221.3 kB / 429.8 MB, free: 6.965 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.2567, allocations: 55.41 kB / 429.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005757/0.2573, allocations: 436.5 kB / 430.3 MB, free: 6.465 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.2573, allocations: 29.7 kB / 430.3 MB, free: 6.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001891/0.2575, allocations: 168 kB / 430.5 MB, free: 6.262 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.774e-05/0.2575, allocations: 43.72 kB / 430.5 MB, free: 6.219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-05/0.2576, allocations: 41.7 kB / 430.6 MB, free: 6.172 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.2578, allocations: 342.8 kB / 430.9 MB, free: 5.828 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.2579, allocations: 47.94 kB / 431 MB, free: 5.781 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001902/0.2581, allocations: 143.7 kB / 431.1 MB, free: 5.613 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002305/0.2583, allocations: 113.9 kB / 431.2 MB, free: 5.496 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2583, allocations: 4 kB / 431.2 MB, free: 5.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003511/0.2587, allocations: 185.3 kB / 431.4 MB, free: 5.305 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.2587, allocations: 4 kB / 431.4 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.2587, allocations: 4 kB / 431.4 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.2587, allocations: 0 / 431.4 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.2588, allocations: 31.92 kB / 431.4 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.393e-06/0.2588, allocations: 0 / 431.4 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.259, allocations: 15.89 kB / 431.5 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/0.259, allocations: 11.98 kB / 431.5 MB, free: 5.238 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.0001967/0.2592, allocations: 167.6 kB / 431.6 MB, free: 5.066 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.662e-05/0.2592, allocations: 31.81 kB / 431.7 MB, free: 5.035 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005183/0.2597, allocations: 204.3 kB / 431.9 MB, free: 4.824 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.2597, allocations: 0 / 431.9 MB, free: 4.824 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.2598, allocations: 0 / 431.9 MB, free: 4.824 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.2598, allocations: 3.984 kB / 431.9 MB, free: 4.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003115/0.2601, allocations: 256.5 kB / 432.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.2601, allocations: 0 / 432.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.446e-05/0.2601, allocations: 11.98 kB / 432.1 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.2601, allocations: 8 kB / 432.1 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.2601, allocations: 7.938 kB / 432.1 MB, free: 4.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.2602, allocations: 0 / 432.1 MB, free: 4.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.2602, allocations: 11.94 kB / 432.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003911/0.2605, allocations: 212 kB / 432.4 MB, free: 4.266 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.471e-05/0.2606, allocations: 35.8 kB / 432.4 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.817e-05/0.2607, allocations: 0 / 432.4 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.725e-05/0.2607, allocations: 15.92 kB / 432.4 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.797e-05/0.2608, allocations: 19.89 kB / 432.4 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.188e-05/0.2608, allocations: 7.984 kB / 432.4 MB, free: 4.188 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003986/0.2612, allocations: 319 kB / 432.7 MB, free: 3.875 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2612, allocations: 0 / 432.7 MB, free: 3.875 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002963/0.2615, allocations: 55.88 kB / 432.8 MB, free: 3.82 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 (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.00233/0.2639, allocations: 1.094 MB / 433.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003228/0.2642, allocations: 127.5 kB / 434 MB, free: 2.766 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2642, allocations: 0 / 434 MB, free: 2.766 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001395/0.2643, allocations: 72.02 kB / 434.1 MB, free: 2.695 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004088/0.2647, allocations: 78.73 kB / 434.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003999/0.2687, allocations: 2.844 MB / 437 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002045/0.2689, allocations: 169.7 kB / 437.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001259/0.2691, allocations: 46.25 kB / 437.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001543/0.2692, allocations: 95.41 kB / 437.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2692, allocations: 0 / 437.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03687/0.3061, allocations: 7.999 MB / 445.3 MB, free: 7.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/11.96, allocations: 7.75 kB / 445.3 MB, free: 7.426 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.59494251711294]