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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 111.6 kB / 16.62 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001251/0.001252, allocations: 189.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001024, allocations: 47.36 kB / 300.2 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08741/0.08845, allocations: 49.44 MB / 349.7 MB, free: 4.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00438/0.09287, allocations: 2.058 MB / 351.7 MB, free: 2.586 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002072/0.09498, allocations: 1.111 MB / 352.8 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002164/0.09522, allocations: 11.88 kB / 352.8 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009051/0.09617, allocations: 288.1 kB / 353.1 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000571/0.09675, allocations: 195.4 kB / 353.3 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009563/0.09772, allocations: 261.3 kB / 353.6 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005893/0.09832, allocations: 355.2 kB / 353.9 MB, free: 400 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002213/0.09855, allocations: 56.36 kB / 354 MB, free: 340 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000288/0.09885, allocations: 143.4 kB / 354.1 MB, free: 196 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002588/0.09911, allocations: 151.4 kB / 354.3 MB, free: 44 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.664e-05/0.09918, allocations: 24 kB / 354.3 MB, free: 20 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002268/0.09941, allocations: 71.95 kB / 354.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001222/0.09955, allocations: 83.69 kB / 354.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001496/0.0997, allocations: 127.2 kB / 354.6 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005051/0.1002, allocations: 347.2 kB / 354.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1002, allocations: 0 / 354.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1002, allocations: 0 / 354.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.1003, allocations: 0 / 354.9 MB, free: 15.4 MB / 302.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.001124/0.1014, allocations: 0.6571 MB / 355.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.1014, allocations: 12.03 kB / 355.6 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.861e-05/0.1015, allocations: 46.73 kB / 355.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.468e-05/0.1016, allocations: 32.56 kB / 355.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004481/0.1021, allocations: 331.7 kB / 356 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.1021, allocations: 8 kB / 356 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.1021, allocations: 12 kB / 356 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003011/0.1024, allocations: 148 kB / 356.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.1024, allocations: 4 kB / 356.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.782e-05/0.1025, allocations: 4 kB / 356.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.1025, allocations: 4 kB / 356.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001667/0.1026, allocations: 73.52 kB / 356.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007513/0.1034, allocations: 496.3 kB / 356.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003205/0.1037, allocations: 134.8 kB / 356.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.1039, allocations: 52.83 kB / 356.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.221e-05/0.1039, allocations: 3.938 kB / 356.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002503/0.1042, allocations: 115.3 kB / 357 MB, free: 13.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 3.206e-06/0.1042, allocations: 0 / 357 MB, free: 13.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005184/0.1047, allocations: 213.1 kB / 357.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.1e-05/0.1048, allocations: 110.8 kB / 357.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004574/0.1053, allocations: 424.5 kB / 357.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.1053, allocations: 33.7 kB / 357.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.1054, allocations: 167.9 kB / 357.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.078e-05/0.1055, allocations: 35.48 kB / 358 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.299e-05/0.1056, allocations: 45.7 kB / 358 MB, free: 12.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1057, allocations: 346.8 kB / 358.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.1058, allocations: 43.88 kB / 358.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.106, allocations: 112.9 kB / 358.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002084/0.1062, allocations: 113.7 kB / 358.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1062, allocations: 0 / 358.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003382/0.1066, allocations: 177.2 kB / 358.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.1066, allocations: 7.938 kB / 358.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.1066, allocations: 4.062 kB / 358.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.1066, allocations: 4 kB / 358.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.1067, allocations: 19.98 kB / 358.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.1068, allocations: 4 kB / 358.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.1069, allocations: 23.83 kB / 358.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.1069, allocations: 4 kB / 358.9 MB, free: 11.16 MB / 302.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.0001796/0.1071, allocations: 163.5 kB / 359 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.629e-05/0.1071, allocations: 39.56 kB / 359.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.552e-05/0.1072, allocations: 38.92 kB / 359.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.1072, allocations: 0 / 359.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1073, allocations: 0 / 359.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.1073, allocations: 4.031 kB / 359.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002773/0.1075, allocations: 301.4 kB / 359.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.1076, allocations: 0 / 359.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.016e-05/0.1076, allocations: 8 kB / 359.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.1076, allocations: 0 / 359.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.1076, allocations: 4 kB / 359.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.1076, allocations: 0 / 359.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.1076, allocations: 7.984 kB / 359.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003415/0.108, allocations: 200.6 kB / 359.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.559e-05/0.1081, allocations: 112.7 kB / 359.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.784e-05/0.1081, allocations: 8 kB / 359.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.447e-05/0.1082, allocations: 15.92 kB / 359.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.986e-05/0.1083, allocations: 11.98 kB / 359.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.1083, allocations: 8 kB / 359.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003202/0.1087, allocations: 319 kB / 360.1 MB, free: 9.848 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1087, allocations: 0 / 360.1 MB, free: 9.848 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000306/0.109, allocations: 44 kB / 360.1 MB, free: 9.805 MB / 302.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.001416/0.1104, allocations: 1.07 MB / 361.2 MB, free: 8.871 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003074/0.1107, allocations: 122.9 kB / 361.3 MB, free: 8.754 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.1107, allocations: 4 kB / 361.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.1109, allocations: 59.91 kB / 361.4 MB, free: 8.691 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/0.1113, allocations: 80.95 kB / 361.4 MB, free: 8.613 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003359/0.1147, allocations: 2.9 MB / 364.3 MB, free: 5.621 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.115, allocations: 0.779 MB / 365.1 MB, free: 4.816 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000145/0.1152, allocations: 50.23 kB / 365.2 MB, free: 4.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.1153, allocations: 91.41 kB / 365.3 MB, free: 4.68 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1153, allocations: 0 / 365.3 MB, free: 4.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2079/0.3233, allocations: 6.864 MB / 372.1 MB, free: 25.22 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001266/0.3234, allocations: 234.3 kB / 372.4 MB, free: 24.97 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.935/2.258, allocations: 1.844 kB / 372.4 MB, free: 24.97 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/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) Reference file matches