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.001113/0.001113, allocations: 109.4 kB / 18.34 MB, free: 4.699 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.001093/0.001093, allocations: 192.1 kB / 19.28 MB, free: 3.766 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.482/1.482, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001336/0.001337, allocations: 59.92 kB / 282.1 MB, free: 2.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1248, allocations: 46.62 MB / 328.7 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003681/0.1285, allocations: 1.996 MB / 330.7 MB, free: 1.758 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001749/0.1303, allocations: 1.05 MB / 331.8 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.1304, allocations: 7.938 kB / 331.8 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009297/0.1314, allocations: 303.2 kB / 332.1 MB, free: 404 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004394/0.1319, allocations: 207.2 kB / 332.3 MB, free: 196 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006847/0.1325, allocations: 259.5 kB / 332.5 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003824/0.1329, allocations: 347.1 kB / 332.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001714/0.1331, allocations: 64.38 kB / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001961/0.1333, allocations: 139.5 kB / 333 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/0.1335, allocations: 151.4 kB / 333.2 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.713e-05/0.1336, allocations: 16 kB / 333.2 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001848/0.1337, allocations: 83.89 kB / 333.3 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.1339, allocations: 87.67 kB / 333.4 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001246/0.134, allocations: 123.2 kB / 333.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003981/0.1344, allocations: 354.8 kB / 333.8 MB, free: 14.6 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1344, allocations: 0 / 333.8 MB, free: 14.6 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1344, allocations: 0 / 333.8 MB, free: 14.6 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.1344, allocations: 4 kB / 333.9 MB, free: 14.59 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.001126/0.1356, allocations: 0.6533 MB / 334.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.1356, allocations: 8.031 kB / 334.5 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.899e-05/0.1357, allocations: 32.56 kB / 334.5 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004894/0.1362, allocations: 331.9 kB / 334.9 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.07e-05/0.1363, allocations: 12.38 kB / 334.9 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.89e-05/0.1363, allocations: 16.12 kB / 334.9 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003185/0.1366, allocations: 148.1 kB / 335 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.1366, allocations: 0 / 335 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.214e-05/0.1367, allocations: 8 kB / 335 MB, free: 13.28 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.1367, allocations: 0 / 335 MB, free: 13.28 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001929/0.1369, allocations: 71.81 kB / 335.1 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008682/0.1378, allocations: 0.4885 MB / 335.6 MB, free: 12.67 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003293/0.1381, allocations: 130.7 kB / 335.7 MB, free: 12.54 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001232/0.1382, allocations: 56.83 kB / 335.8 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.075e-05/0.1383, allocations: 0 / 335.8 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002615/0.1385, allocations: 115.3 kB / 335.9 MB, free: 12.35 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.1386, allocations: 0 / 335.9 MB, free: 12.35 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005354/0.1391, allocations: 214.2 kB / 336.1 MB, free: 12.14 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.555e-05/0.1392, allocations: 110.8 kB / 336.2 MB, free: 12 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005045/0.1397, allocations: 424.5 kB / 336.6 MB, free: 11.57 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.711e-05/0.1397, allocations: 33.7 kB / 336.7 MB, free: 11.54 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.1399, allocations: 175.9 kB / 336.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.87e-05/0.1399, allocations: 35.55 kB / 336.9 MB, free: 11.32 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.166e-05/0.14, allocations: 49.69 kB / 336.9 MB, free: 11.27 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.1401, allocations: 338.8 kB / 337.3 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/0.1403, allocations: 43.97 kB / 337.3 MB, free: 10.89 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001458/0.1404, allocations: 102 kB / 337.4 MB, free: 10.77 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001964/0.1406, allocations: 109.1 kB / 337.5 MB, free: 10.65 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.1406, allocations: 0 / 337.5 MB, free: 10.65 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003161/0.1409, allocations: 173.2 kB / 337.7 MB, free: 10.48 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.141, allocations: 7.938 kB / 337.7 MB, free: 10.47 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.141, allocations: 8.062 kB / 337.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.141, allocations: 0 / 337.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.1411, allocations: 23.97 kB / 337.7 MB, free: 10.44 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.1412, allocations: 11.88 kB / 337.7 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.1413, allocations: 27.81 kB / 337.7 MB, free: 10.4 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/0.1413, allocations: 4 kB / 337.8 MB, free: 10.39 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.0001687/0.1415, allocations: 167.6 kB / 337.9 MB, free: 10.22 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.217e-05/0.1415, allocations: 35.56 kB / 338 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.86e-05/0.1416, allocations: 34.94 kB / 338 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.1416, allocations: 0 / 338 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.1416, allocations: 0 / 338 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.1417, allocations: 4 kB / 338 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002857/0.1419, allocations: 297.4 kB / 338.3 MB, free: 9.805 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.142, allocations: 8 kB / 338.3 MB, free: 9.797 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.743e-05/0.142, allocations: 7.938 kB / 338.3 MB, free: 9.789 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.142, allocations: 3.938 kB / 338.3 MB, free: 9.785 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.142, allocations: 11.98 kB / 338.3 MB, free: 9.773 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.142, allocations: 0 / 338.3 MB, free: 9.773 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.142, allocations: 0 / 338.3 MB, free: 9.773 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003525/0.1424, allocations: 201.4 kB / 338.5 MB, free: 9.559 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.949e-05/0.1425, allocations: 104.7 kB / 338.6 MB, free: 9.438 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.41e-05/0.1425, allocations: 11.94 kB / 338.6 MB, free: 9.426 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.137e-05/0.1426, allocations: 7.984 kB / 338.6 MB, free: 9.418 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.081e-05/0.1427, allocations: 11.98 kB / 338.6 MB, free: 9.406 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.1427, allocations: 8 kB / 338.6 MB, free: 9.398 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003182/0.1431, allocations: 319 kB / 339 MB, free: 9.09 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1431, allocations: 0 / 339 MB, free: 9.09 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002806/0.1434, allocations: 48 kB / 339 MB, free: 9.043 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.001022/0.1444, allocations: 426.2 kB / 339.4 MB, free: 8.629 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003176/0.1447, allocations: 115.9 kB / 339.5 MB, free: 8.516 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1447, allocations: 0 / 339.5 MB, free: 8.516 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.1449, allocations: 68.31 kB / 339.6 MB, free: 8.449 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000391/0.1453, allocations: 77.53 kB / 339.7 MB, free: 8.371 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007752/0.1461, allocations: 488.3 kB / 340.2 MB, free: 7.867 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/0.1464, allocations: 0.7753 MB / 340.9 MB, free: 7.066 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001101/0.1466, allocations: 42.25 kB / 341 MB, free: 7.023 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.466e-05/0.1466, allocations: 35.42 kB / 341 MB, free: 6.988 MB / 286.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1466, allocations: 4 kB / 341 MB, free: 6.984 MB / 286.1 MB Notification: Performance of Templates: time 0.00793/0.1546, allocations: 3.832 MB / 344.8 MB, free: 3.152 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 -s gbode -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/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