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.001189/0.001189, allocations: 104.1 kB / 16.62 MB, free: 6.809 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.001244/0.001244, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.36/1.36, allocations: 222.9 MB / 241.2 MB, free: 15.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008908/0.0008908, allocations: 51.17 kB / 300.1 MB, free: 6.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0924/0.0933, allocations: 49.44 MB / 349.6 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003002/0.09634, allocations: 2.047 MB / 351.6 MB, free: 2.672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.09798, allocations: 1.111 MB / 352.7 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.044e-05/0.09807, allocations: 7.938 kB / 352.7 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006621/0.09874, allocations: 293.5 kB / 353 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003719/0.09912, allocations: 183.5 kB / 353.2 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006201/0.09975, allocations: 274.1 kB / 353.5 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003077/0.1001, allocations: 339.2 kB / 353.8 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.1002, allocations: 72.36 kB / 353.9 MB, free: 428 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001491/0.1003, allocations: 147.4 kB / 354 MB, free: 280 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.1005, allocations: 143.4 kB / 354.2 MB, free: 136 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.949e-05/0.1005, allocations: 16 kB / 354.2 MB, free: 120 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001353/0.1007, allocations: 83.89 kB / 354.2 MB, free: 36 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.1008, allocations: 83.73 kB / 354.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.1009, allocations: 131.1 kB / 354.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003338/0.1013, allocations: 343.2 kB / 354.8 MB, free: 15.49 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.1013, allocations: 0 / 354.8 MB, free: 15.49 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.1013, allocations: 4 kB / 354.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1013, allocations: 4 kB / 354.8 MB, free: 15.48 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.0007698/0.1021, allocations: 0.6493 MB / 355.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.708e-05/0.1021, allocations: 12.03 kB / 355.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.308e-05/0.1022, allocations: 40.48 kB / 355.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003664/0.1025, allocations: 328 kB / 355.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.844e-05/0.1026, allocations: 11.94 kB / 355.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.027e-05/0.1026, allocations: 12 kB / 355.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002612/0.1029, allocations: 156 kB / 356 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.1029, allocations: 0 / 356 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.1029, allocations: 0 / 356 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.1029, allocations: 4 kB / 356 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000159/0.1031, allocations: 71.95 kB / 356.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005913/0.1037, allocations: 488.3 kB / 356.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002977/0.104, allocations: 142.7 kB / 356.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.1041, allocations: 44.84 kB / 356.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.1041, allocations: 11.97 kB / 356.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002016/0.1043, allocations: 107.3 kB / 356.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.1043, allocations: 0 / 356.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004758/0.1048, allocations: 220.6 kB / 357.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.1049, allocations: 118.8 kB / 357.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004307/0.1053, allocations: 420.5 kB / 357.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.1054, allocations: 33.7 kB / 357.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.1055, allocations: 167.9 kB / 357.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.429e-05/0.1055, allocations: 35.55 kB / 357.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.864e-05/0.1056, allocations: 41.7 kB / 357.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1057, allocations: 346.8 kB / 358.2 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.1058, allocations: 43.94 kB / 358.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.106, allocations: 102 kB / 358.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001923/0.1062, allocations: 110.4 kB / 358.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.1062, allocations: 0 / 358.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003139/0.1065, allocations: 181.2 kB / 358.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.1065, allocations: 4 kB / 358.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.1065, allocations: 0 / 358.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.1065, allocations: 4 kB / 358.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.1067, allocations: 27.92 kB / 358.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.1067, allocations: 4 kB / 358.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.349e-05/0.1068, allocations: 15.84 kB / 358.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.1068, allocations: 11.98 kB / 358.7 MB, free: 11.3 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.0001375/0.1069, allocations: 167.6 kB / 358.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.551e-05/0.107, allocations: 35.56 kB / 358.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.677e-05/0.1071, allocations: 34.94 kB / 358.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.1071, allocations: 3.938 kB / 358.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1071, allocations: 3.984 kB / 358.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.1071, allocations: 3.938 kB / 358.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002502/0.1073, allocations: 297.4 kB / 359.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1074, allocations: 3.938 kB / 359.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.896e-05/0.1074, allocations: 12 kB / 359.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1074, allocations: 4 kB / 359.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.1074, allocations: 4 kB / 359.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1074, allocations: 0 / 359.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1074, allocations: 0 / 359.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003141/0.1078, allocations: 199.4 kB / 359.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.718e-05/0.1078, allocations: 116.5 kB / 359.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.022e-05/0.1079, allocations: 8 kB / 359.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.803e-05/0.108, allocations: 15.98 kB / 359.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.881e-05/0.108, allocations: 7.984 kB / 359.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.108, allocations: 12 kB / 359.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002973/0.1084, allocations: 311 kB / 359.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1084, allocations: 3.938 kB / 359.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002611/0.1086, allocations: 52 kB / 360 MB, free: 9.938 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.0008763/0.1095, allocations: 423.7 kB / 360.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002944/0.1098, allocations: 131.1 kB / 360.5 MB, free: 9.547 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1098, allocations: 3.938 kB / 360.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000121/0.11, allocations: 55.97 kB / 360.6 MB, free: 9.488 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003873/0.1103, allocations: 87.88 kB / 360.6 MB, free: 9.406 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000672/0.111, allocations: 0.5589 MB / 361.2 MB, free: 8.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003127/0.1114, allocations: 0.7753 MB / 362 MB, free: 8.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001176/0.1115, allocations: 46.25 kB / 362 MB, free: 7.977 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.936e-05/0.1115, allocations: 27.44 kB / 362.1 MB, free: 7.949 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1116, allocations: 4 kB / 362.1 MB, free: 7.945 MB / 302.1 MB Notification: Performance of Templates: time 0.006643/0.1182, allocations: 3.742 MB / 365.8 MB, free: 4.242 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