Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001301/0.001301, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001431/0.001431, allocations: 214.8 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.383/1.383, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 51.92 kB / 347.2 MB, free: 9.902 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2411, allocations: 49.16 MB / 396.3 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00301/0.2441, allocations: 1.926 MB / 398.3 MB, free: 7.582 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.2457, allocations: 1.03 MB / 399.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.2458, allocations: 6.156 kB / 399.3 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008495/0.2466, allocations: 308.7 kB / 399.6 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004351/0.2471, allocations: 212.5 kB / 399.8 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005872/0.2477, allocations: 263.4 kB / 400.1 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003479/0.248, allocations: 348.4 kB / 400.4 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.2481, allocations: 43.44 kB / 400.4 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001687/0.2483, allocations: 144.1 kB / 400.6 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001916/0.2485, allocations: 149.8 kB / 400.7 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.729e-05/0.2485, allocations: 19.22 kB / 400.8 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001926/0.2487, allocations: 90.61 kB / 400.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.632e-05/0.2488, allocations: 88.52 kB / 400.9 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.772e-05/0.2489, allocations: 92.44 kB / 401 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003728/0.2493, allocations: 353 kB / 401.4 MB, free: 6.027 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.2493, allocations: 0.6094 kB / 401.4 MB, free: 6.027 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2493, allocations: 0 / 401.4 MB, free: 6.027 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.2493, allocations: 4.938 kB / 401.4 MB, free: 6.023 MB / 318.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.0007576/0.2501, allocations: 0.5939 MB / 402 MB, free: 5.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.2501, allocations: 13.11 kB / 402 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.082e-05/0.2501, allocations: 45.84 kB / 402 MB, free: 5.465 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.182e-05/0.2502, allocations: 35.45 kB / 402.1 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003619/0.2506, allocations: 266.1 kB / 402.3 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.2506, allocations: 9.969 kB / 402.3 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.626e-05/0.2506, allocations: 22.33 kB / 402.3 MB, free: 5.223 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002322/0.2508, allocations: 122.7 kB / 402.5 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.2508, allocations: 0 / 402.5 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.541e-05/0.2509, allocations: 8.484 kB / 402.5 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.2509, allocations: 6.281 kB / 402.5 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000157/0.251, allocations: 74.88 kB / 402.6 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005819/0.2516, allocations: 436.8 kB / 403 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003001/0.2519, allocations: 127 kB / 403.1 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.252, allocations: 52.86 kB / 403.2 MB, free: 4.711 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.252, allocations: 2.438 kB / 403.2 MB, free: 4.711 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001969/0.2522, allocations: 121.1 kB / 403.3 MB, free: 4.637 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.2522, allocations: 0 / 403.3 MB, free: 4.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004425/0.2527, allocations: 220.8 kB / 403.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.038e-05/0.2527, allocations: 55.22 kB / 403.5 MB, free: 4.477 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004154/0.2531, allocations: 441.4 kB / 404 MB, free: 4.266 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.2531, allocations: 27.91 kB / 404 MB, free: 4.234 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.638e-05/0.2532, allocations: 172.7 kB / 404.2 MB, free: 4.086 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.281e-05/0.2532, allocations: 40.97 kB / 404.2 MB, free: 4.055 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.489e-05/0.2533, allocations: 42.72 kB / 404.3 MB, free: 4.027 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.271e-05/0.2533, allocations: 345.8 kB / 404.6 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.2535, allocations: 46.52 kB / 404.6 MB, free: 3.684 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.2536, allocations: 149.6 kB / 404.8 MB, free: 3.555 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.2538, allocations: 114.5 kB / 404.9 MB, free: 3.488 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2538, allocations: 1.062 kB / 404.9 MB, free: 3.488 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003028/0.2541, allocations: 180.5 kB / 405.1 MB, free: 3.398 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.2541, allocations: 10.2 kB / 405.1 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.2541, allocations: 0 / 405.1 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.2541, allocations: 2.25 kB / 405.1 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.2542, allocations: 24.75 kB / 405.1 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.2542, allocations: 1.922 kB / 405.1 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.847e-05/0.2543, allocations: 21.72 kB / 405.1 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.2543, allocations: 4.156 kB / 405.1 MB, free: 3.379 MB / 318.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.0001199/0.2545, allocations: 176.5 kB / 405.3 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.346e-05/0.2545, allocations: 32.59 kB / 405.3 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003535/0.2549, allocations: 197.4 kB / 405.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.2549, allocations: 2.625 kB / 405.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2549, allocations: 0 / 405.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.2549, allocations: 2.969 kB / 405.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.2551, allocations: 251.6 kB / 405.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.2551, allocations: 5.281 kB / 405.8 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.122e-05/0.2551, allocations: 22.39 kB / 405.8 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.2551, allocations: 9.156 kB / 405.8 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.2552, allocations: 4.172 kB / 405.8 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.2552, allocations: 0.7031 kB / 405.8 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2552, allocations: 0 / 405.8 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003026/0.2555, allocations: 213.7 kB / 406 MB, free: 2.766 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.121e-05/0.2555, allocations: 34.77 kB / 406.1 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.942e-05/0.2555, allocations: 7.719 kB / 406.1 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.38e-05/0.2556, allocations: 7.469 kB / 406.1 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.534e-05/0.2557, allocations: 19.38 kB / 406.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.756e-05/0.2557, allocations: 6.812 kB / 406.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002818/0.256, allocations: 320.2 kB / 406.4 MB, free: 2.582 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.256, allocations: 0 / 406.4 MB, free: 2.582 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002739/0.2563, allocations: 57.59 kB / 406.5 MB, free: 2.566 MB / 318.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.001873/0.2581, allocations: 1.091 MB / 407.6 MB, free: 1.621 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002868/0.2584, allocations: 136.3 kB / 407.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2584, allocations: 128 / 407.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.2585, allocations: 67.28 kB / 407.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003884/0.2589, allocations: 74.7 kB / 407.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003119/0.2621, allocations: 2.845 MB / 410.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001813/0.2622, allocations: 168.9 kB / 410.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001418/0.2624, allocations: 43.17 kB / 410.9 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001528/0.2625, allocations: 95.42 kB / 411 MB, free: 15.61 MB / 334.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2625, allocations: 4 kB / 411 MB, free: 15.61 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03893/0.3015, allocations: 8.015 MB / 419 MB, free: 11.21 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.14, allocations: 5.219 kB / 419 MB, free: 11.2 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable Pre1.u from file Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table1.y in file Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table1.y from file Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! Error: Could not read variable table2.y in file Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv. Warning: Get data of variable table2.y from file Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.744494310114533]