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: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008074/0.0008074, allocations: 101.1 kB / 17.31 MB, free: 6.109 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.0008372/0.0008373, allocations: 178.5 kB / 18.21 MB, free: 5.41 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.649/1.649, allocations: 205.4 MB / 224.4 MB, free: 13.05 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.0005246/0.0005242, allocations: 8.422 kB / 281.4 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.113, allocations: 47.58 MB / 328.9 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002422/0.1155, allocations: 1.688 MB / 330.6 MB, free: 2.062 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001919/0.1174, allocations: 1.022 MB / 331.7 MB, free: 1.031 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.1175, allocations: 4 kB / 331.7 MB, free: 1.027 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008401/0.1184, allocations: 291.3 kB / 331.9 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003983/0.1188, allocations: 187.5 kB / 332.1 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006161/0.1194, allocations: 239.6 kB / 332.4 MB, free: 332 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003823/0.1198, allocations: 339.2 kB / 332.7 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001629/0.12, allocations: 64.31 kB / 332.8 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001955/0.1202, allocations: 119.4 kB / 332.9 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001905/0.1204, allocations: 127.4 kB / 333 MB, free: 15.69 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.205e-05/0.1204, allocations: 8 kB / 333 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001619/0.1206, allocations: 67.89 kB / 333.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.811e-05/0.1207, allocations: 67.75 kB / 333.1 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001372/0.1209, allocations: 144.8 kB / 333.3 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003798/0.1212, allocations: 323.1 kB / 333.6 MB, free: 15.08 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1213, allocations: 0 / 333.6 MB, free: 15.08 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1213, allocations: 4 kB / 333.6 MB, free: 15.08 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1213, allocations: 0 / 333.6 MB, free: 15.08 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.0009443/0.1222, allocations: 0.6067 MB / 334.2 MB, free: 14.41 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.943e-05/0.1223, allocations: 11.97 kB / 334.2 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.1224, allocations: 36.55 kB / 334.3 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005615/0.123, allocations: 328 kB / 334.6 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.123, allocations: 8.375 kB / 334.6 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.431e-05/0.1231, allocations: 12.12 kB / 334.6 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003158/0.1234, allocations: 152.1 kB / 334.7 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.1234, allocations: 0 / 334.7 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.383e-05/0.1235, allocations: 4 kB / 334.7 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.527e-05/0.1235, allocations: 4 kB / 334.8 MB, free: 13.81 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001722/0.1237, allocations: 67.83 kB / 334.8 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007389/0.1244, allocations: 0.4886 MB / 335.3 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003436/0.1248, allocations: 134.7 kB / 335.4 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/0.1249, allocations: 48.84 kB / 335.5 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.114e-05/0.1249, allocations: 7.984 kB / 335.5 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002461/0.1252, allocations: 119.2 kB / 335.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.1252, allocations: 0 / 335.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005066/0.1257, allocations: 220.5 kB / 335.8 MB, free: 12.66 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.908e-05/0.1258, allocations: 106.8 kB / 335.9 MB, free: 12.53 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004714/0.1263, allocations: 436.4 kB / 336.4 MB, free: 12.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.1263, allocations: 29.7 kB / 336.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.1264, allocations: 167.9 kB / 336.5 MB, free: 11.89 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.299e-05/0.1265, allocations: 43.45 kB / 336.6 MB, free: 11.85 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.857e-05/0.1265, allocations: 25.7 kB / 336.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.1267, allocations: 342.8 kB / 336.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.1268, allocations: 43.97 kB / 337 MB, free: 11.43 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.127, allocations: 102 kB / 337.1 MB, free: 11.31 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001971/0.1272, allocations: 106.4 kB / 337.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.1272, allocations: 0 / 337.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003112/0.1275, allocations: 174.4 kB / 337.4 MB, free: 11.02 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.1275, allocations: 15.92 kB / 337.4 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.1276, allocations: 0 / 337.4 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.1276, allocations: 0 / 337.4 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.1277, allocations: 27.94 kB / 337.4 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.1277, allocations: 3.984 kB / 337.4 MB, free: 10.97 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.955e-05/0.1278, allocations: 15.84 kB / 337.4 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.1278, allocations: 16.06 kB / 337.4 MB, free: 10.94 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.0001699/0.128, allocations: 167.6 kB / 337.6 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.336e-05/0.1281, allocations: 35.56 kB / 337.6 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.048e-05/0.1282, allocations: 34.94 kB / 337.7 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1282, allocations: 0 / 337.7 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.1282, allocations: 0 / 337.7 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.1282, allocations: 0 / 337.7 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002952/0.1285, allocations: 305.4 kB / 338 MB, free: 10.35 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.1285, allocations: 0 / 338 MB, free: 10.35 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.145e-05/0.1286, allocations: 15.98 kB / 338 MB, free: 10.33 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.1286, allocations: 3.938 kB / 338 MB, free: 10.33 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.1286, allocations: 4 kB / 338 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.1286, allocations: 0 / 338 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1286, allocations: 0 / 338 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003245/0.1289, allocations: 197.5 kB / 338.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.171e-05/0.129, allocations: 116.6 kB / 338.3 MB, free: 9.98 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.303e-05/0.1291, allocations: 15.94 kB / 338.3 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.949e-05/0.1292, allocations: 11.98 kB / 338.3 MB, free: 9.953 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.297e-05/0.1292, allocations: 15.92 kB / 338.3 MB, free: 9.938 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.1293, allocations: 4 kB / 338.4 MB, free: 9.934 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003214/0.1296, allocations: 319 kB / 338.7 MB, free: 9.625 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1296, allocations: 0 / 338.7 MB, free: 9.625 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002805/0.1299, allocations: 48 kB / 338.7 MB, free: 9.578 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.001006/0.1309, allocations: 427.7 kB / 339.1 MB, free: 9.164 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003007/0.1312, allocations: 111.9 kB / 339.2 MB, free: 9.055 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1312, allocations: 4 kB / 339.2 MB, free: 9.051 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001303/0.1314, allocations: 59.91 kB / 339.3 MB, free: 8.992 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004577/0.1318, allocations: 73.92 kB / 339.4 MB, free: 8.918 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009023/0.1327, allocations: 0.5464 MB / 339.9 MB, free: 8.344 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.1331, allocations: 0.7794 MB / 340.7 MB, free: 7.539 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001223/0.1332, allocations: 46.23 kB / 340.7 MB, free: 7.496 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.65e-05/0.1333, allocations: 31.44 kB / 340.8 MB, free: 7.465 MB / 286.1 MB Notification: Performance of SimCode: time 6.92e-07/0.1333, allocations: 0 / 340.8 MB, free: 7.465 MB / 286.1 MB Notification: Performance of Templates: time 0.008487/0.1418, allocations: 3.61 MB / 344.4 MB, free: 3.852 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.makefile (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 & ./Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches