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: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001138/0.001138, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001174/0.001174, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.366/1.366, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001089/0.001089, allocations: 45.39 kB / 300.6 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1151, allocations: 49.45 MB / 350 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004692/0.1199, allocations: 2.004 MB / 352 MB, free: 2.391 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002387/0.1223, allocations: 1.13 MB / 353.2 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002851/0.1226, allocations: 3.938 kB / 353.2 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001189/0.1238, allocations: 299.2 kB / 353.5 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006317/0.1244, allocations: 203.3 kB / 353.7 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008679/0.1253, allocations: 297.5 kB / 354 MB, free: 488 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005133/0.1259, allocations: 339.2 kB / 354.3 MB, free: 148 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002029/0.1261, allocations: 56.33 kB / 354.3 MB, free: 88 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00032/0.1264, allocations: 147.4 kB / 354.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002918/0.1267, allocations: 147.4 kB / 354.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.511e-05/0.1268, allocations: 20 kB / 354.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000234/0.127, allocations: 75.95 kB / 354.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001538/0.1272, allocations: 83.69 kB / 354.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001717/0.1273, allocations: 127.2 kB / 354.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006117/0.128, allocations: 339.2 kB / 355.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.128, allocations: 0 / 355.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.128, allocations: 3.938 kB / 355.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.38e-05/0.128, allocations: 4 kB / 355.3 MB, free: 15.16 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.001463/0.1295, allocations: 0.6572 MB / 355.9 MB, free: 14.44 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.1295, allocations: 12.03 kB / 355.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.1297, allocations: 32.56 kB / 356 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006283/0.1303, allocations: 327.9 kB / 356.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.1303, allocations: 11.94 kB / 356.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.1304, allocations: 12 kB / 356.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003327/0.1307, allocations: 152 kB / 356.5 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.1307, allocations: 0 / 356.5 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/0.1307, allocations: 0 / 356.5 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.667e-06/0.1308, allocations: 4 kB / 356.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001895/0.1309, allocations: 73.52 kB / 356.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007819/0.1317, allocations: 0.4885 MB / 357 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000311/0.1321, allocations: 130.8 kB / 357.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.1322, allocations: 48.83 kB / 357.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.861e-05/0.1323, allocations: 8 kB / 357.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000237/0.1325, allocations: 115.2 kB / 357.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.1325, allocations: 0 / 357.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005854/0.1331, allocations: 213.2 kB / 357.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.158e-05/0.1332, allocations: 110.8 kB / 357.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005237/0.1337, allocations: 420.5 kB / 358.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.1338, allocations: 37.7 kB / 358.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.1339, allocations: 167.9 kB / 358.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.134, allocations: 39.48 kB / 358.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.888e-05/0.1341, allocations: 41.7 kB / 358.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1343, allocations: 346.8 kB / 358.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001115/0.1344, allocations: 51.88 kB / 358.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001442/0.1345, allocations: 106 kB / 358.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002028/0.1348, allocations: 105.3 kB / 358.9 MB, free: 11.22 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1348, allocations: 3.938 kB / 358.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003213/0.1351, allocations: 177.2 kB / 359.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.1351, allocations: 12 kB / 359.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.1351, allocations: 0 / 359.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/0.1352, allocations: 4 kB / 359.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.1353, allocations: 19.98 kB / 359.1 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.1353, allocations: 4 kB / 359.1 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.1354, allocations: 19.83 kB / 359.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.1354, allocations: 8 kB / 359.2 MB, free: 10.97 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.0001606/0.1356, allocations: 171.5 kB / 359.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.393e-05/0.1357, allocations: 39.56 kB / 359.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.128e-05/0.1357, allocations: 38.92 kB / 359.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.1358, allocations: 0 / 359.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1358, allocations: 0 / 359.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.1358, allocations: 0 / 359.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002612/0.136, allocations: 297.4 kB / 359.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.1361, allocations: 3.938 kB / 359.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.426e-05/0.1361, allocations: 8 kB / 359.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1361, allocations: 0 / 359.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.1361, allocations: 8 kB / 359.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1361, allocations: 7.984 kB / 359.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1361, allocations: 0 / 359.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003133/0.1365, allocations: 196.7 kB / 359.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.059e-05/0.1365, allocations: 112.6 kB / 360 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.991e-05/0.1366, allocations: 4 kB / 360 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.268e-05/0.1367, allocations: 15.98 kB / 360.1 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.255e-05/0.1367, allocations: 7.984 kB / 360.1 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/0.1368, allocations: 12 kB / 360.1 MB, free: 9.969 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003105/0.1371, allocations: 315 kB / 360.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.194e-06/0.1371, allocations: 0 / 360.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002831/0.1374, allocations: 55.94 kB / 360.4 MB, free: 9.609 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.001126/0.1385, allocations: 437.3 kB / 360.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003193/0.1388, allocations: 123.9 kB / 361 MB, free: 9.211 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1388, allocations: 8.062 kB / 361 MB, free: 9.203 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001289/0.139, allocations: 59.58 kB / 361.1 MB, free: 9.148 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004339/0.1394, allocations: 84.56 kB / 361.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007954/0.1402, allocations: 0.4924 MB / 361.6 MB, free: 8.551 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.1406, allocations: 0.7753 MB / 362.4 MB, free: 7.746 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001184/0.1407, allocations: 38.27 kB / 362.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.46e-05/0.1408, allocations: 27.42 kB / 362.5 MB, free: 7.684 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1408, allocations: 0 / 362.5 MB, free: 7.684 MB / 302.1 MB Notification: Performance of Templates: time 0.008207/0.149, allocations: 3.823 MB / 366.3 MB, free: 3.895 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile (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 & ./Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/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