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.0008986/0.0008983, allocations: 112.2 kB / 17.28 MB, free: 6.219 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.001/0.001, allocations: 189.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.01/2.01, allocations: 205.1 MB / 224.1 MB, free: 12.45 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.001202/0.001202, allocations: 43.94 kB / 280.1 MB, free: 3.52 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1267, allocations: 46.63 MB / 326.8 MB, free: 4.816 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003701/0.1305, allocations: 2.043 MB / 328.8 MB, free: 2.754 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.1322, allocations: 1.042 MB / 329.9 MB, free: 1.703 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001175/0.1323, allocations: 4 kB / 329.9 MB, free: 1.699 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008692/0.1332, allocations: 287.4 kB / 330.1 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004396/0.1336, allocations: 187.4 kB / 330.3 MB, free: 1.234 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005848/0.1342, allocations: 239.7 kB / 330.6 MB, free: 1 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004007/0.1346, allocations: 351.1 kB / 330.9 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001907/0.1348, allocations: 64.38 kB / 331 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001915/0.135, allocations: 147.4 kB / 331.1 MB, free: 460 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001779/0.1352, allocations: 147.4 kB / 331.2 MB, free: 312 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.701e-05/0.1353, allocations: 20 kB / 331.3 MB, free: 292 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001887/0.1354, allocations: 75.91 kB / 331.3 MB, free: 216 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.1356, allocations: 83.73 kB / 331.4 MB, free: 132 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000138/0.1357, allocations: 127.2 kB / 331.5 MB, free: 4 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000413/0.1361, allocations: 343.2 kB / 331.9 MB, free: 15.67 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1361, allocations: 8 kB / 331.9 MB, free: 15.66 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1362, allocations: 0 / 331.9 MB, free: 15.66 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.716e-06/0.1362, allocations: 3.984 kB / 331.9 MB, free: 15.66 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.0009725/0.1371, allocations: 0.6571 MB / 332.6 MB, free: 14.94 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.1372, allocations: 11.97 kB / 332.6 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.896e-05/0.1373, allocations: 32.56 kB / 332.6 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004163/0.1377, allocations: 324 kB / 332.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.1377, allocations: 8.375 kB / 332.9 MB, free: 14.53 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.391e-05/0.1378, allocations: 16.12 kB / 332.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000299/0.1381, allocations: 148.1 kB / 333.1 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.1381, allocations: 0 / 333.1 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.1381, allocations: 4 kB / 333.1 MB, free: 14.35 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.1381, allocations: 4 kB / 333.1 MB, free: 14.35 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001613/0.1383, allocations: 71.81 kB / 333.2 MB, free: 14.28 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007383/0.139, allocations: 0.4885 MB / 333.6 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00034/0.1394, allocations: 138.7 kB / 333.8 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.1395, allocations: 52.83 kB / 333.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.1395, allocations: 0 / 333.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003223/0.1399, allocations: 115.3 kB / 333.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.1399, allocations: 0 / 333.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005324/0.1404, allocations: 217.1 kB / 334.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.1406, allocations: 110.8 kB / 334.3 MB, free: 13.06 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005042/0.1411, allocations: 424.5 kB / 334.7 MB, free: 12.64 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.08e-05/0.1411, allocations: 37.69 kB / 334.7 MB, free: 12.59 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.1413, allocations: 171.9 kB / 334.9 MB, free: 12.42 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.063e-05/0.1413, allocations: 35.55 kB / 334.9 MB, free: 12.39 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.135e-05/0.1414, allocations: 41.7 kB / 335 MB, free: 12.34 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.1416, allocations: 342.8 kB / 335.3 MB, free: 12 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001083/0.1417, allocations: 47.97 kB / 335.3 MB, free: 11.95 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.1419, allocations: 101.9 kB / 335.4 MB, free: 11.83 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000203/0.1421, allocations: 107.6 kB / 335.5 MB, free: 11.71 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1421, allocations: 4 kB / 335.6 MB, free: 11.71 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003306/0.1424, allocations: 174.1 kB / 335.7 MB, free: 11.54 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/0.1425, allocations: 7.938 kB / 335.7 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.1425, allocations: 0 / 335.7 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.1425, allocations: 4 kB / 335.7 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.1426, allocations: 23.92 kB / 335.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.1427, allocations: 4 kB / 335.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.528e-05/0.1428, allocations: 23.83 kB / 335.8 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.1428, allocations: 8.062 kB / 335.8 MB, free: 11.46 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.0002228/0.143, allocations: 171.6 kB / 336 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.689e-05/0.1431, allocations: 35.56 kB / 336 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.394e-05/0.1432, allocations: 30.94 kB / 336 MB, free: 11.22 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.1432, allocations: 0 / 336 MB, free: 11.22 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.1432, allocations: 3.938 kB / 336 MB, free: 11.21 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.1432, allocations: 3.938 kB / 336 MB, free: 11.21 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003495/0.1436, allocations: 301.4 kB / 336.3 MB, free: 10.87 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1436, allocations: 4.047 kB / 336.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.586e-05/0.1436, allocations: 11.98 kB / 336.3 MB, free: 10.85 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.1436, allocations: 3.938 kB / 336.3 MB, free: 10.85 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.1437, allocations: 11.98 kB / 336.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1437, allocations: 0 / 336.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.1437, allocations: 0 / 336.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003403/0.144, allocations: 198.5 kB / 336.6 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.81e-05/0.1441, allocations: 108.6 kB / 336.7 MB, free: 10.5 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001434/0.1443, allocations: 15.94 kB / 336.7 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.82e-05/0.1444, allocations: 11.92 kB / 336.7 MB, free: 10.47 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.054e-05/0.1444, allocations: 11.98 kB / 336.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/0.1445, allocations: 11.98 kB / 336.7 MB, free: 10.45 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003566/0.1448, allocations: 311 kB / 337 MB, free: 10.15 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1448, allocations: 0 / 337 MB, free: 10.15 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003103/0.1452, allocations: 55.98 kB / 337.1 MB, free: 10.09 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.001183/0.1464, allocations: 426.9 kB / 337.5 MB, free: 9.68 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003661/0.1467, allocations: 127.8 kB / 337.6 MB, free: 9.555 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1467, allocations: 0 / 337.6 MB, free: 9.555 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.1469, allocations: 59.92 kB / 337.7 MB, free: 9.496 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004495/0.1473, allocations: 77.17 kB / 337.7 MB, free: 9.418 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001006/0.1483, allocations: 0.5512 MB / 338.3 MB, free: 8.84 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004947/0.1489, allocations: 0.7752 MB / 339.1 MB, free: 8.039 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001326/0.149, allocations: 46.2 kB / 339.1 MB, free: 7.992 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.926e-05/0.1491, allocations: 31.42 kB / 339.1 MB, free: 7.961 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1491, allocations: 0 / 339.1 MB, free: 7.961 MB / 286.1 MB Notification: Performance of Templates: time 0.009924/0.159, allocations: 3.751 MB / 342.9 MB, free: 4.207 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