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.001724/0.001724, allocations: 123.2 kB / 17.79 MB, free: 5.246 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.001895/0.001895, allocations: 186.9 kB / 20.73 MB, free: 2.316 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.387/1.387, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.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.001502/0.001502, allocations: 51.92 kB / 365.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08985/0.09136, allocations: 52.15 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004786/0.09614, allocations: 2.017 MB / 419.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002633/0.09878, allocations: 1.146 MB / 420.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001142/0.09889, allocations: 0 / 420.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001016/0.09991, allocations: 303.1 kB / 421.2 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006014/0.1005, allocations: 203.3 kB / 421.4 MB, free: 8.965 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009546/0.1015, allocations: 293.7 kB / 421.7 MB, free: 8.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005296/0.102, allocations: 327.1 kB / 422 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001625/0.1022, allocations: 48.36 kB / 422.1 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002415/0.1024, allocations: 139.5 kB / 422.2 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002627/0.1027, allocations: 159.3 kB / 422.4 MB, free: 8.023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.631e-05/0.1027, allocations: 20 kB / 422.4 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002375/0.1029, allocations: 83.94 kB / 422.5 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.1031, allocations: 91.67 kB / 422.6 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001749/0.1033, allocations: 123.2 kB / 422.7 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005921/0.1038, allocations: 350.5 kB / 423 MB, free: 7.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1039, allocations: 0 / 423 MB, free: 7.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1039, allocations: 0 / 423 MB, free: 7.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1039, allocations: 0 / 423 MB, free: 7.367 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.001292/0.1052, allocations: 0.6686 MB / 423.7 MB, free: 6.637 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.1052, allocations: 8.031 kB / 423.7 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.803e-05/0.1053, allocations: 46.67 kB / 423.8 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.856e-05/0.1054, allocations: 36.7 kB / 423.8 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006215/0.106, allocations: 335.9 kB / 424.1 MB, free: 6.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.106, allocations: 8 kB / 424.1 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.13e-05/0.106, allocations: 12 kB / 424.1 MB, free: 6.148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004156/0.1065, allocations: 152.1 kB / 424.3 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.1065, allocations: 0 / 424.3 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.956e-05/0.1065, allocations: 4 kB / 424.3 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/0.1065, allocations: 0 / 424.3 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002557/0.1067, allocations: 75.95 kB / 424.4 MB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009534/0.1077, allocations: 492.2 kB / 424.8 MB, free: 5.375 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004894/0.1082, allocations: 142.6 kB / 425 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.1084, allocations: 48.77 kB / 425 MB, free: 5.176 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/0.1084, allocations: 3.984 kB / 425 MB, free: 5.172 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000308/0.1087, allocations: 115.3 kB / 425.1 MB, free: 5.047 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.184e-06/0.1087, allocations: 0 / 425.1 MB, free: 5.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006666/0.1094, allocations: 215.6 kB / 425.4 MB, free: 4.832 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.264e-05/0.1095, allocations: 110.8 kB / 425.5 MB, free: 4.699 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007232/0.1102, allocations: 424.5 kB / 425.9 MB, free: 4.277 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.199e-05/0.1102, allocations: 33.7 kB / 425.9 MB, free: 4.238 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001832/0.1104, allocations: 168 kB / 426.1 MB, free: 4.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.586e-05/0.1105, allocations: 43.67 kB / 426.1 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.803e-05/0.1106, allocations: 45.7 kB / 426.2 MB, free: 3.977 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002101/0.1108, allocations: 342.8 kB / 426.5 MB, free: 3.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.111, allocations: 47.94 kB / 426.5 MB, free: 3.586 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002422/0.1112, allocations: 100.4 kB / 426.6 MB, free: 3.469 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003211/0.1115, allocations: 106.5 kB / 426.7 MB, free: 3.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1115, allocations: 0 / 426.7 MB, free: 3.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005173/0.112, allocations: 179.6 kB / 426.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.1121, allocations: 4 kB / 426.9 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.1121, allocations: 4 kB / 426.9 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.1121, allocations: 0 / 426.9 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001761/0.1122, allocations: 31.98 kB / 427 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.1123, allocations: 0 / 427 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001644/0.1124, allocations: 23.88 kB / 427 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.706e-05/0.1124, allocations: 4 kB / 427 MB, free: 3.109 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.0002465/0.1127, allocations: 171.5 kB / 427.2 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.368e-05/0.1128, allocations: 35.8 kB / 427.2 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001089/0.1129, allocations: 34.94 kB / 427.2 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1129, allocations: 7.938 kB / 427.2 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1129, allocations: 4 kB / 427.2 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.1129, allocations: 3.938 kB / 427.2 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004234/0.1133, allocations: 305.3 kB / 427.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1133, allocations: 0 / 427.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.598e-05/0.1134, allocations: 8 kB / 427.5 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.1134, allocations: 4 kB / 427.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.1134, allocations: 3.984 kB / 427.6 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.1134, allocations: 0 / 427.6 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1134, allocations: 0 / 427.6 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005248/0.1139, allocations: 204.8 kB / 427.8 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/0.114, allocations: 104.9 kB / 427.9 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.999e-05/0.1141, allocations: 8 kB / 427.9 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/0.1142, allocations: 15.92 kB / 427.9 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.436e-05/0.1143, allocations: 15.92 kB / 427.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.549e-05/0.1143, allocations: 8 kB / 427.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004925/0.1148, allocations: 311 kB / 428.2 MB, free: 1.785 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1148, allocations: 0 / 428.2 MB, free: 1.785 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004892/0.1153, allocations: 59.89 kB / 428.3 MB, free: 1.727 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.002877/0.1182, allocations: 1.064 MB / 429.3 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004176/0.1186, allocations: 115.8 kB / 429.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1186, allocations: 0 / 429.4 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001852/0.1188, allocations: 55.97 kB / 429.5 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006051/0.1194, allocations: 83.56 kB / 429.6 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005198/0.1246, allocations: 2.805 MB / 432.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000544/0.1251, allocations: 0.779 MB / 433.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001982/0.1253, allocations: 46.27 kB / 433.2 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000214/0.1255, allocations: 99.39 kB / 433.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1256, allocations: 0 / 433.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03425/0.1598, allocations: 7.203 MB / 440.5 MB, free: 5.578 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.877/8.037, allocations: 20.84 kB / 440.5 MB, free: 5.562 MB / 366.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00199601 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.566214392893016]