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.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 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 100.2 kB / 17.58 MB, free: 5.414 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.00112/0.00112, allocations: 191.9 kB / 18.5 MB, free: 4.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.345/1.345, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 60.33 kB / 280.7 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1021, allocations: 46.63 MB / 327.4 MB, free: 4.398 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003838/0.1059, allocations: 1.985 MB / 329.4 MB, free: 2.391 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001712/0.1077, allocations: 1.062 MB / 330.4 MB, free: 1.32 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001517/0.1079, allocations: 0 / 330.4 MB, free: 1.32 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008231/0.1087, allocations: 303.2 kB / 330.7 MB, free: 1.023 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000462/0.1092, allocations: 207.2 kB / 330.9 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000653/0.1098, allocations: 263.4 kB / 331.2 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003854/0.1102, allocations: 335.2 kB / 331.5 MB, free: 240 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.1104, allocations: 60.36 kB / 331.6 MB, free: 180 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001937/0.1106, allocations: 151.4 kB / 331.7 MB, free: 28 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002199/0.1108, allocations: 139.4 kB / 331.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.495e-05/0.1109, allocations: 20 kB / 331.9 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001683/0.1111, allocations: 75.95 kB / 331.9 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.1112, allocations: 83.69 kB / 332 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001329/0.1113, allocations: 127.2 kB / 332.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000409/0.1117, allocations: 343.2 kB / 332.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1118, allocations: 3.938 kB / 332.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1118, allocations: 4 kB / 332.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.1118, allocations: 3.938 kB / 332.5 MB, free: 15.24 MB / 286.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.001044/0.1128, allocations: 0.6533 MB / 333.1 MB, free: 14.53 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/0.1129, allocations: 12.03 kB / 333.2 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.401e-05/0.1129, allocations: 42.75 kB / 333.2 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.238e-05/0.113, allocations: 32.56 kB / 333.2 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004968/0.1135, allocations: 335.9 kB / 333.6 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.1136, allocations: 8.375 kB / 333.6 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.834e-05/0.1136, allocations: 15.94 kB / 333.6 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003097/0.1139, allocations: 148.2 kB / 333.7 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.1139, allocations: 0 / 333.7 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.114, allocations: 4 kB / 333.7 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.114, allocations: 4 kB / 333.7 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001604/0.1142, allocations: 71.77 kB / 333.8 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006692/0.1148, allocations: 0.4924 MB / 334.3 MB, free: 13.26 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003119/0.1152, allocations: 130.8 kB / 334.4 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.1153, allocations: 48.84 kB / 334.5 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.1153, allocations: 4 kB / 334.5 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002214/0.1155, allocations: 115.2 kB / 334.6 MB, free: 12.95 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.1155, allocations: 0 / 334.6 MB, free: 12.95 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004645/0.116, allocations: 217.1 kB / 334.8 MB, free: 12.73 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.1161, allocations: 106.8 kB / 334.9 MB, free: 12.6 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004416/0.1165, allocations: 432.5 kB / 335.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.1166, allocations: 33.7 kB / 335.4 MB, free: 12.12 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.1167, allocations: 167.9 kB / 335.5 MB, free: 11.95 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.665e-05/0.1167, allocations: 39.47 kB / 335.6 MB, free: 11.91 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.081e-05/0.1168, allocations: 41.7 kB / 335.6 MB, free: 11.87 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1169, allocations: 346.8 kB / 335.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.117, allocations: 39.98 kB / 336 MB, free: 11.48 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/0.1172, allocations: 105.9 kB / 336.1 MB, free: 11.36 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002143/0.1174, allocations: 114.5 kB / 336.2 MB, free: 11.23 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1174, allocations: 0 / 336.2 MB, free: 11.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003114/0.1177, allocations: 177.2 kB / 336.4 MB, free: 11.05 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.1178, allocations: 7.938 kB / 336.4 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.1178, allocations: 0 / 336.4 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.1178, allocations: 4 kB / 336.4 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.1179, allocations: 19.98 kB / 336.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.1179, allocations: 4 kB / 336.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.655e-05/0.118, allocations: 15.84 kB / 336.4 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/0.118, allocations: 8.047 kB / 336.4 MB, free: 11 MB / 286.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.0001566/0.1182, allocations: 175.5 kB / 336.6 MB, free: 10.81 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.721e-05/0.1183, allocations: 39.5 kB / 336.6 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.386e-05/0.1183, allocations: 34.94 kB / 336.7 MB, free: 10.74 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1183, allocations: 0 / 336.7 MB, free: 10.74 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1184, allocations: 0 / 336.7 MB, free: 10.74 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.1184, allocations: 3.984 kB / 336.7 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002396/0.1186, allocations: 297.5 kB / 337 MB, free: 10.39 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1186, allocations: 0 / 337 MB, free: 10.39 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.033e-05/0.1187, allocations: 11.98 kB / 337 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.1187, allocations: 7.875 kB / 337 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.1187, allocations: 8 kB / 337 MB, free: 10.37 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.1187, allocations: 3.938 kB / 337 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1187, allocations: 0 / 337 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003212/0.119, allocations: 197.4 kB / 337.2 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.973e-05/0.1191, allocations: 116.6 kB / 337.3 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.099e-05/0.1192, allocations: 4 kB / 337.3 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.149e-05/0.1192, allocations: 8 kB / 337.3 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.762e-05/0.1193, allocations: 19.97 kB / 337.3 MB, free: 9.988 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.1193, allocations: 4 kB / 337.3 MB, free: 9.984 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003122/0.1196, allocations: 319 kB / 337.6 MB, free: 9.676 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1197, allocations: 0 / 337.6 MB, free: 9.676 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002737/0.1199, allocations: 44 kB / 337.7 MB, free: 9.633 MB / 286.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.001383/0.1213, allocations: 1.06 MB / 338.8 MB, free: 8.555 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003076/0.1216, allocations: 131.8 kB / 338.9 MB, free: 8.426 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1217, allocations: 0 / 338.9 MB, free: 8.426 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001237/0.1218, allocations: 67.84 kB / 338.9 MB, free: 8.359 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003898/0.1222, allocations: 61.39 kB / 339 MB, free: 8.297 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003176/0.1254, allocations: 2.846 MB / 341.9 MB, free: 5.363 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000356/0.1257, allocations: 0.7753 MB / 342.6 MB, free: 4.562 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001316/0.1259, allocations: 46.23 kB / 342.7 MB, free: 4.516 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/0.126, allocations: 95.39 kB / 342.8 MB, free: 4.422 MB / 286.1 MB Notification: Performance of SimCode: time 4.81e-07/0.126, allocations: 0 / 342.8 MB, free: 4.422 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02349/0.1495, allocations: 7.06 MB / 349.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.459/7.609, allocations: 15.58 kB / 349.8 MB, free: 13.27 MB / 302.1 MB (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.004 Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) 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) Reference file matches